当前位置:网站首页>SSDB Foundation
SSDB Foundation
2022-04-23 19:06:00 【franket】
Preface
ssdb It is a high-performance system that supports rich data structures NoSQL database , Used in substitution Redis.
It is associated with Redis One feature that has obvious advantages over is based on hard disk storage , Therefore, the amount of data it supports will not be constrained by memory constraints .
As for performance , Because the access efficiency depends in part on the size of the hard disk IOPS, therefore Official website Given benchmark The result should be very high IOPS The hard disk of ( Like solid state drives ) The results tested on , Someone has been tested in a normal environment , The actual efficiency is redis Of 42%~57%,CPU The load is twice as high , Concurrency efficiency is also related to redis There is a clear gap , Details can be referred to redis and ssdb Read performance comparison
although SSDB Not as efficient as REDIS, But disk based storage has its biggest advantage , After all, a lot of business data far exceeds the capacity of server memory , Even if not more than , Compared with hard disk , Memory is also much more expensive , Therefore, the choice between time and space depends on the specific application scenario
Let's share ssdb Basic operation , see Official documents
Tip: The current official version is SSDB 1.9.2
Summary
Download and install
Use the following method for installation
wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip
unzip master
cd ssdb-master
make
sudo make install
setup script
[[email protected] src]# wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip
--2015-11-24 19:36:34-- https://github.com/ideawu/ssdb/archive/master.zip
Resolving github.com... 192.30.252.130
Connecting to github.com|192.30.252.130|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/ideawu/ssdb/zip/master [following]
--2015-11-24 19:36:35-- https://codeload.github.com/ideawu/ssdb/zip/master
Resolving codeload.github.com... 192.30.252.147
Connecting to codeload.github.com|192.30.252.147|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: “master.zip”
[ <=>
2015-11-24 19:37:19 (33.7 KB/s) - “master.zip” saved [1460288]
[[email protected] src]# ll master.zip
-rw-r--r-- 1 root root 1460288 Nov 24 19:37 master.zip
[[email protected] src]#
[[email protected] src]# unzip master.zip
Archive: master.zip
9497637f54da00f364e310de42000284545cfebe
creating: ssdb-master/
inflating: ssdb-master/.gitignore
inflating: ssdb-master/ChangeLog
inflating: ssdb-master/Dockerfile
inflating: ssdb-master/LICENSE
inflating: ssdb-master/Makefile
inflating: ssdb-master/README.md
...
...
creating: ssdb-master/tools/ssdb_cli/
inflating: ssdb-master/tools/ssdb_cli/cluster.cpy
inflating: ssdb-master/tools/ssdb_cli/exporter.cpy
inflating: ssdb-master/tools/ssdb_cli/flushdb.cpy
inflating: ssdb-master/tools/ssdb_cli/importer.cpy
inflating: ssdb-master/tools/ssdb_cli/util.cpy
inflating: ssdb-master/tools/unittest.php
extracting: ssdb-master/version
[[email protected] src]#
[[email protected] src]# ll ssdb-master/
total 4912
drwxr-xr-x 6 root root 4096 Nov 23 20:34 api
-rw-r--r-- 1 root root 671 Nov 24 19:41 build_config.mk
-rwxr-xr-x 1 root root 3468 Nov 23 20:34 build.sh
-rw-r--r-- 1 root root 4831 Nov 23 20:34 ChangeLog
drwxr-xr-x 6 root root 4096 Nov 23 20:34 deps
-rw-r--r-- 1 root root 971 Nov 23 20:34 Dockerfile
drwxr-xr-x 2 root root 4096 Nov 23 20:34 docs
-rw-r--r-- 1 root root 1470 Nov 23 20:34 LICENSE
-rw-r--r-- 1 root root 1573 Nov 23 20:34 Makefile
-rw-r--r-- 1 root root 4412 Nov 23 20:34 README.md
drwxr-xr-x 6 root root 4096 Nov 24 19:41 src
-rwxr-xr-x 1 root root 946 Nov 23 20:34 ssdb.conf
-rwxr-xr-x 1 root root 4950089 Nov 24 19:40 ssdb-server
-rwxr-xr-x 1 root root 705 Nov 23 20:34 ssdb_slave.conf
drwxr-xr-x 3 root root 4096 Nov 24 19:40 tools
drwxr-xr-x 2 root root 4096 Nov 24 19:40 var
drwxr-xr-x 2 root root 4096 Nov 24 19:40 var_slave
-rw-r--r-- 1 root root 6 Nov 23 20:34 version
[[email protected] src]#
[[email protected] src]# cd ssdb-master/
[[email protected] ssdb-master]# make
##### building snappy... #####
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
...
...
g++ -o ssdb-repair ssdb-repair.o ../src/net/link.o ../src/net/fde.o ../src/util/log.o ../src/util/bytes.o --1.18/libleveldb.a" "/usr/local/src/ssdb-master/deps/snappy-1.1.0/.libs/libsnappy.a" "/usr/local/src/ssdb-mas
g++ -o leveldb-import leveldb-import.o ../src/net/link.o ../src/net/fde.o ../src/util/log.o ../src/util/byteseveldb-1.18/libleveldb.a" "/usr/local/src/ssdb-master/deps/snappy-1.1.0/.libs/libsnappy.a" "/usr/local/src/ss
g++ -o ssdb-migrate ssdb-migrate.o ../api/cpp/libssdb-client.a ../src/util/libutil.a
make[1]: Leaving directory `/usr/local/src/ssdb-master/tools'
[[email protected] ssdb-master]# echo $?
0
[[email protected] ssdb-master]# make install
mkdir -p /usr/local/ssdb
mkdir -p /usr/local/ssdb/_cpy_
mkdir -p /usr/local/ssdb/deps
mkdir -p /usr/local/ssdb/var
mkdir -p /usr/local/ssdb/var_slave
cp -f ssdb-server ssdb.conf ssdb_slave.conf /usr/local/ssdb
cp -rf api /usr/local/ssdb
cp -rf \
tools/ssdb-bench \
tools/ssdb-cli tools/ssdb_cli \
tools/ssdb-cli.cpy tools/ssdb-dump \
tools/ssdb-repair \
/usr/local/ssdb
cp -rf deps/cpy /usr/local/ssdb/deps
chmod 755 /usr/local/ssdb
chmod -R ugo+rw /usr/local/ssdb/*
rm -f /usr/local/ssdb/Makefile
[[email protected] ssdb-master]#
版权声明
本文为[franket]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231853539804.html
边栏推荐
- MySQL Téléchargement et installation de la version Linux
- 该买什么设备,Keysight 给你挑好了
- 2022.04.23(LC_714_买卖股票的最佳时机含手续费)
- Getting started with vcpkg
- SSDB基础1
- Actual combat of Nacos as service configuration center
- 22 year flying Book manpower Kit
- binlog2sql 工具安装使用及问题汇总
- mysql_linux版本的下载及安装详解
- [popular science] CRC verification (I) what is CRC verification?
猜你喜欢
The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
ESP32 LVGL8. 1 - calendar (calendar 25)
Raspberry pie uses root operation, and the graphical interface uses its own file manager
该买什么设备,Keysight 给你挑好了
ESP32 LVGL8. 1 - slider slider (slider 22)
The difference between ordinary inner class and static inner class
Download xshell 6 and xftp6 official websites
ESP32 LVGL8. 1 - input devices (input devices 18)
MVVM模型
Eight bit binary multiplier VHDL
随机推荐
Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system
ESP32 LVGL8. 1 - msgbox message box (msgbox 28)
The corresponding permissions required to automatically open the app in the setting interface through accessibility service
Wechat video extraction and receiving file path
Methods of nested recycleview to solve sliding conflict and incomplete item display
Xlslib use
c1000k TCP 连接上限测试1
Esp01s with Arduino development environment
開關電源設計分享及電源設計技巧圖解
Click the input box to pop up the keyboard layout and move up
Database computer experiment 4 (data integrity and stored procedure)
mysql_linux版本的下載及安裝詳解
MVVM模型
ESP32 LVGL8. 1 - img picture (IMG 20)
FTP, SSH Remote Access and control
Installation, use and problem summary of binlog2sql tool
ESP32 LVGL8. 1 - input devices (input devices 18)
Introduction to ROS learning notes (II)
Deeply understand what new and make in golang are and what are the differences?
Simplified path (force buckle 71)