In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Introduction to SSDB
SSDB is a high-performance NoSQL database developed by CumberCraft + language. It supports KV, list, map (hash), zset (sorted set) and other data structures. It is used to replace or cooperate with Redis to store billion-level list data.
SSDB is stable, used in production environment, and has been widely used in many Internet companies, such as Qihoo 360, TOPGAME.
Download and install
Wget-no-check-certificate https://github.com/ideawu/ssdb/archive/master.zipunzip mastercd ssdb-mastermake# will be installed in the / usr/local/ssdb directory sudo make install start and stop # start the main library This command blocks the command line. / ssdb-server ssdb.conf# or starts as a background process (does not block the command line). / ssdb-server-d ssdb.conf# stops ssdb-server./ssdb-server ssdb.conf-s stop# for the old version of kill `cat. / var/ ssdb.pid` # restart. / ssdb-server ssdb.conf-s restart
Double master scheme
Master-1:10.105.10.77
Work_dir =. / varpidfile =. / var/ssdb.pidserver: ip: 0.0.0.0 port: 8888replication: binlog: yes sync_speed:-1 slaveof: id: svc_2 type: sync host: 10.105.10.128 port: 8888logger: level: info output: Log.txt rotate: size: 1000000000leveldb: cache_size: 500 block_size: 32 write_buffer_size: 64 compaction_speed: 1000 compression: yes
Restart ssdb
Master-2:10.105.10.128
Work_dir =. / varpidfile =. / var/ssdb.pidserver: ip: 0.0.0.0 port: 8888replication: binlog: yes sync_speed:-1 slaveof: id: svc_2 type: sync host: 10.105.10.77 port: 8888logger: level: info output: Log.txt rotate: size: 1000000000leveldb: cache_size: 500 block_size: 32 write_buffer_size: 64 compaction_speed: 1000 compression: yes
Restart SSDB
Install and configure haproxy
Yum-y install haproxyvim / etc/haproxy/haproxy.cfgglobal log 127.0.0.1 local2 chroot / var/lib/haproxy pidfile / var/run/haproxy.pid maxconn 4000 user haproxy group haproxy daemon stats socket / var/lib/haproxy/statsdefaults mode http log global option dontlognull option Redispatch retries 3 timeout http-request 10s timeout queue 1m timeout connect 10s timeout client 1m timeout server 1m timeout http-keep-alive 10s timeout check 10s maxconn 3000listen testbind 0.0.0.0:8899mode tcpbalance roundrobinserver s1 10.105.10.128:8888 weight 1 maxconn 10000 check inter 10sserver s2 10.105 . 10.77:8888 weight 1 maxconn 10000 check inter 10s
Restart haproxy. In the future, you can use keepalive to design the haproxy to be dual-master or ready.
/ etc/init.d/haproxy restart
Test (client connection haproxy address)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.