nixpkgs/nixos/modules/services/databases
Ivan Kozik b047dfa13d nixos/victoriametrics: set LimitNOFILE=1048576 to fix panic and restart loop
This fixes:

```
systemd[1]: Started VictoriaMetrics time series database.
victoria-metrics[379550]: 2021-08-04T19:33:39.833Z        panic        VictoriaMetrics/lib/storage/partition.go:954        FATAL: unrecoverable error when merging small parts in the partition "/var/lib/victoriametrics/data/small/2021_08": cannot open source part for merging: cannot open metaindex file in stream mode: cannot open file "/var/lib/victoriametrics/data/small/2021_08/1228_1228_20210804184120.712_20210804184121.899_16982E83CD7A763A/metaindex.bin": open /var/lib/victoriametrics/data/small/2021_08/1228_1228_20210804184120.712_20210804184121.899_16982E83CD7A763A/metaindex.bin: too many open files
victoria-metrics[379550]: panic: FATAL: unrecoverable error when merging small parts in the partition "/var/lib/victoriametrics/data/small/2021_08": cannot open source part for merging: cannot open metaindex file in stream mode: cannot open file "/var/lib/victoriametrics/data/small/2021_08/1228_1228_20210804184120.712_20210804184121.899_16982E83CD7A763A/metaindex.bin": open /var/lib/victoriametrics/data/small/2021_08/1228_1228_20210804184120.712_20210804184121.899_16982E83CD7A763A/metaindex.bin: too many open files
victoria-metrics[379550]: goroutine 629 [running]:
victoria-metrics[379550]: github.com/VictoriaMetrics/VictoriaMetrics/lib/logger.logMessage(0xbb3ea1, 0x5, 0xc001113800, 0x1e7, 0x4)
victoria-metrics[379550]:         github.com/VictoriaMetrics/VictoriaMetrics/lib/logger/logger.go:270 +0xc69
victoria-metrics[379550]: github.com/VictoriaMetrics/VictoriaMetrics/lib/logger.logLevelSkipframes(0x1, 0xbb3ea1, 0x5, 0xbe3f8b, 0x4b, 0xc000bb3f88, 0x2, 0x2)
victoria-metrics[379550]:         github.com/VictoriaMetrics/VictoriaMetrics/lib/logger/logger.go:138 +0xd1
victoria-metrics[379550]: github.com/VictoriaMetrics/VictoriaMetrics/lib/logger.logLevel(...)
victoria-metrics[379550]:         github.com/VictoriaMetrics/VictoriaMetrics/lib/logger/logger.go:130
victoria-metrics[379550]: github.com/VictoriaMetrics/VictoriaMetrics/lib/logger.Panicf(...)
victoria-metrics[379550]:         github.com/VictoriaMetrics/VictoriaMetrics/lib/logger/logger.go:126
victoria-metrics[379550]: github.com/VictoriaMetrics/VictoriaMetrics/lib/storage.(*partition).smallPartsMerger(0xc0014d7980)
victoria-metrics[379550]:         github.com/VictoriaMetrics/VictoriaMetrics/lib/storage/partition.go:954 +0x145
victoria-metrics[379550]: github.com/VictoriaMetrics/VictoriaMetrics/lib/storage.(*partition).startMergeWorkers.func1(0xc0014d7980)
victoria-metrics[379550]:         github.com/VictoriaMetrics/VictoriaMetrics/lib/storage/partition.go:933 +0x2b
victoria-metrics[379550]: created by github.com/VictoriaMetrics/VictoriaMetrics/lib/storage.(*partition).startMergeWorkers
victoria-metrics[379550]:         github.com/VictoriaMetrics/VictoriaMetrics/lib/storage/partition.go:932 +0x6c
systemd[1]: victoriametrics.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: victoriametrics.service: Failed with result 'exit-code'.
systemd[1]: victoriametrics.service: Consumed 587ms CPU time, received 6.5K IP traffic, sent 1.7K IP traffic.
systemd[1]: victoriametrics.service: Scheduled restart job, restart counter is at 2064.
systemd[1]: Stopped VictoriaMetrics time series database.
systemd[1]: victoriametrics.service: Consumed 587ms CPU time, received 6.5K IP traffic, sent 1.7K IP traffic.
systemd[1]: Starting VictoriaMetrics time series database...
```

(cherry picked from commit fb6fbcb85cd0167c9759b82f16013777327c07e5)
2021-08-07 10:39:13 +00:00
..
aerospike.nix
cassandra.nix nixos/cassandra: extraUsers -> users 2021-04-29 08:51:40 +02:00
clickhouse.nix clickhouse: 20.11.4.13-stable -> 21.3.11.5-lts 2021-05-19 14:08:46 -07:00
cockroachdb.nix cockroachdb: remove stray trailing whitespace 2020-04-03 00:34:18 +02:00
couchdb.nix couchdb2: drop 2021-05-03 15:41:42 +02:00
firebird.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
foundationdb.nix nixos/*: fix indentation 2020-11-23 08:42:51 +10:00
foundationdb.xml
hbase.nix
influxdb.nix
memcached.nix nixos/memcached: Type all options 2020-06-30 09:36:45 +01:00
monetdb.nix
mongodb.nix Merge pull request #91813 from Mic92/types1 2021-01-14 17:04:54 -05:00
mysql.nix treewide: Fix mysql alias deprecation breakage 2021-06-05 17:11:40 +00:00
neo4j.nix treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
openldap.nix openldap: fix typo in maintainers 2021-01-13 19:15:18 +01:00
opentsdb.nix
pgmanage.nix nixos/users: require one of users.users.name.{isSystemUser,isNormalUser} 2021-04-14 20:40:00 +02:00
postgresql.nix nixos/postgresql: fix description of ensureUsers.ensurePermissions 2021-05-17 18:03:04 +09:00
postgresql.xml
redis.nix nixos/redis: set port type to `types.port` 2021-06-01 13:15:24 +00:00
rethinkdb.nix nixos/rethinkdb: refactor enable option 2020-05-27 21:36:31 +02:00
riak.nix utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
victoriametrics.nix nixos/victoriametrics: set LimitNOFILE=1048576 to fix panic and restart loop 2021-08-07 10:39:13 +00:00
virtuoso.nix nixos/virtuoso: Type all options 2020-06-30 09:36:44 +01:00