SSDB configuration
Note
Important
max open files (maximum number of file descriptors)
, please refer to [1]. Otherwise, you will see it in log.txt Too many open files
Similar errors, or see Connection reset by peer
error on the client.PS: Use this c1000k tool to test how many concurrent connections your system supports.
Listening network port
server:
ip: 127.0.0.1
port: 8888
Default configuration file listening 127.0.0.1
is a local loop network, so this SSDB server cannot be connected from other machines. If you want to connect to the SSDB server from other machines, you must change 127.0.0.1
Changed to 0.0.0.0
.
At the same time, use the deny, allow
directive in the configuration file to restrict trusted source IP access.
warn!
0.0.0.0
IP may cause your data to be accessed by any machine, which is likely to be a security issue! You can combine the iptables of the operating system to limit network access .Synchronization and Replication
Log Configuration
Also see Log analysis.
- ##logger.level
Log level
debug, warn, error, fatal.
Generally, it is recommended that you set logger.level
to debug
level.
- ##logger.output
Log Output
logger:
output: log.txt
to logger:
output: stdout
- ##logger.rorate.size Log rotation and cleaning
. The split log files will not be automatically cleaned. You need to write your own crontab script to clean them. One ssdb- The memory occupied by the server instanceInstantly(It is possible, and even if it is reached, it will only last for a short period of time) The maximum reaches (MB): This is the case when the compression option is not turned on. If You can adjust the configuration parameters to limit the memory usage of ssdb-server.Memory usage
cache_size + write_buffer_size 66 + 32
compression: yes
, the calculation formula is: cache_size + 10 write_buffer_size * 66 + 32