aerospike / aerospike-server.docker

Dockerfiles for Aerospike Server
Other
141 stars 68 forks source link

CRITICAL (config): (cfg.c:4014) 1024 system file descriptors not enough, config specified 15000 #47

Closed 6643 closed 2 years ago

6643 commented 3 years ago
root@21:~# nerdctl run --name as -p 3000:3000 aerospike/aerospike-server
link eth0 state up
link eth0 state up in 0
Aug 16 2021 01:41:40 GMT: INFO (as): (as.c:306) <><><><><><><><><><>  Aerospike Community Edition build 5.6.0.9  <><><><><><><><><><>
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) # Aerospike database configuration file.
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) # This stanza must come first.
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) service {
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   user root
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   group root
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   pidfile /var/run/aerospike/asd.pid
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) # service-threads 6 # cpu x 5 in 4.7 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) # transaction-queues 6 # obsolete in 4.7 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) # transaction-threads-per-queue 4 # obsolete in 4.7
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   proto-fd-max 15000
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) }
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) logging {
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   # Log file must be an absolute path.
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   file /dev/null {
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       context any info
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   }
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   # Send log messages to stdout
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   console {
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       context any info 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   }
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) }
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) network {
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   service {
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       address any
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       port 3000
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       # Uncomment the following to set the `access-address` parameter to the
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       # IP address of the Docker host. This will the allow the server to correctly
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       # publish the address which applications and other nodes in the cluster to
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       # use when addressing this node.
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       # access-address <IPADDR>
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   }
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   heartbeat {
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)         address any
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       # mesh is used for environments that do not support multicast
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       mode mesh
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       port 3002
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       # use asinfo -v 'tip:host=<ADDR>;port=3002' to inform cluster of
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       # other mesh nodes
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       interval 150
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       timeout 10
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   }
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   fabric {
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       address any
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       port 3001
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   }
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) }
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) namespace test {
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   replication-factor 2
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   memory-size 1G
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   default-ttl 30d # 5 days, use 0 to never expire/evict.
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   nsup-period 120
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   #   storage-engine memory
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   # To use file storage backing, comment out the line above and use the
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   # following lines instead.
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   storage-engine device {
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       file /opt/aerospike/data/test.dat
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       filesize 4G
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)       data-in-memory true # Store data in memory in addition to file.
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990)   }
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) }
Aug 16 2021 01:41:40 GMT: INFO (config): (cfg.c:3990) 
Aug 16 2021 01:41:40 GMT: CRITICAL (config): (cfg.c:4014) 1024 system file descriptors not enough, config specified 15000
Aug 16 2021 01:41:40 GMT: WARNING (as): (signal.c:166) SIGINT received, shutting down Aerospike Community Edition build 5.6.0.9 os debian10
Aug 16 2021 01:41:40 GMT: WARNING (as): (signal.c:169) startup was not complete, exiting immediately
root@21:~# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 63401
max locked memory       (kbytes, -l) 65536
max memory size         (kbytes, -m) unlimited
open files                      (-n) 100000
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 63401
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
13DaGGeR commented 2 years ago

try running with --ulimit nofile=15000:15000

6643 commented 2 years ago
~/files $ nerdctl run --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
link eth0 state up
link eth0 state up in 0
Dec 14 2021 06:26:57 GMT: INFO (as): (as.c:310) <><><><><><><><><><>  Aerospike Community Edition build 5.7.0.8  <><><><><><><><><><>
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) # Aerospike database configuration file.
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) # This stanza must come first.
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) service {
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   user root
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   group root
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   pidfile /var/run/aerospike/asd.pid
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) # service-threads 6 # cpu x 5 in 4.7 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) # transaction-queues 6 # obsolete in 4.7 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) # transaction-threads-per-queue 4 # obsolete in 4.7
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   proto-fd-max 15000
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) }
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) logging {
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   # Log file must be an absolute path.
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   file /dev/null {
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       context any info
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   }
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   # Send log messages to stdout
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   console {
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       context any info 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   }
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) }
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) network {
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   service {
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       address any
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       port 3000
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       # Uncomment the following to set the `access-address` parameter to the
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       # IP address of the Docker host. This will the allow the server to correctly
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       # publish the address which applications and other nodes in the cluster to
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       # use when addressing this node.
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       # access-address <IPADDR>
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   }
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   heartbeat {
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)         address any
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       # mesh is used for environments that do not support multicast
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       mode mesh
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       port 3002
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       # use asinfo -v 'tip:host=<ADDR>;port=3002' to inform cluster of
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       # other mesh nodes
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       interval 150
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       timeout 10
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   }
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   fabric {
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       address any
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       port 3001
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   }
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) }
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) namespace test {
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   replication-factor 2
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   memory-size 1G
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   default-ttl 30d # 5 days, use 0 to never expire/evict.
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   nsup-period 120
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   #   storage-engine memory
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   # To use file storage backing, comment out the line above and use the
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   # following lines instead.
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   storage-engine device {
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       file /opt/aerospike/data/test.dat
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       filesize 4G
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)       data-in-memory true # Store data in memory in addition to file.
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041)   }
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) }
Dec 14 2021 06:26:57 GMT: INFO (config): (cfg.c:4041) 
Dec 14 2021 06:26:57 GMT: CRITICAL (config): (cfg.c:4070) 1024 system file descriptors not enough, config specified 15000
Dec 14 2021 06:26:57 GMT: WARNING (as): (signal.c:166) SIGINT received, shutting down Aerospike Community Edition build 5.7.0.8 os debian10
Dec 14 2021 06:26:57 GMT: WARNING (as): (signal.c:169) startup was not complete, exiting immediately