当前位置:网站首页>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
边栏推荐
- Deeply understand what new and make in golang are and what are the differences?
- Actual combat of Nacos as service configuration center
- [play with lighthouse] Tencent cloud lightweight server builds a full platform video analysis video download website
- WebView saves the last browsing location
- Screen right-click menu in souI
- JVM的类加载过程
- The difference between ordinary inner class and static inner class
- ESP32 LVGL8. 1 - msgbox message box (msgbox 28)
- Seata handles distributed transactions
- [记录]TypeError: this.getOptions is not a function
猜你喜欢

Esp32 (UART event) - serial port event learning (1)

ESP32 LVGL8. 1 - input devices (input devices 18)
![[记录]TypeError: this.getOptions is not a function](/img/c9/0d92891b6beec3d6085bd3da516f00.png)
[记录]TypeError: this.getOptions is not a function

ESP32 LVGL8. 1 - checkbox (checkbox 23)

Machine learning theory (8): model integration ensemble learning

Raspberry pie uses root operation, and the graphical interface uses its own file manager

2022.04.23 (the best time for lc_714_to buy and sell stocks, including handling charges)

MVVM model

mysql_linux版本的下載及安裝詳解

Class loading process of JVM
随机推荐
Esp32 (UART 485 communication) - 485 communication of serial port (3)
redis优化系列(三)解决主从配置后的常见问题
Implementation of TCP UDP communication with golang language
Class loading process of JVM
RPM package management
Introduction to ROS learning notes (II)
Machine learning theory (8): model integration ensemble learning
ESP32 LVGL8. 1 - slider slider (slider 22)
Android Development: the client obtains the latest value in the database in real time and displays it on the interface
Chondroitin sulfate in vitreous
该买什么设备,Keysight 给你挑好了
Advanced transfer learning
电路在线模拟
8266 obtain 18b20 temperature
JVM的类加载过程
STM32: LCD display
Zlib realizes streaming decompression
Circuit on-line simulation
Using 8266 as serial port debugging tool
Practice of Druid SQL and security in meituan review