1
0

adb rename to kvdb

This commit is contained in:
2024-07-09 14:20:29 +08:00
parent 8b4c5145e0
commit 9c95b66d2a
14 changed files with 2939 additions and 150 deletions

View File

@@ -1,6 +1,6 @@
[Service] [Service]
Type=forking Type=forking
ExecStart=/usr/local/bin/adb-server /usr/local/etc/adb/adb.conf ExecStart=/usr/local/bin/kvdb-server /usr/local/etc/kvdb/kvdb.conf
ExecStopPost= ExecStopPost=
PIDFile= PIDFile=
Restart=always Restart=always

View File

@@ -304,7 +304,7 @@ daemonize yes
# #
# Creating a pid file is best effort: if Redis is not able to create it # Creating a pid file is best effort: if Redis is not able to create it
# nothing bad happens, the server will start and run normally. # nothing bad happens, the server will start and run normally.
pidfile /var/run/adb-server.pid pidfile /var/run/kvdb-server.pid
# Specify the server verbosity level. # Specify the server verbosity level.
# This can be one of: # This can be one of:
@@ -312,13 +312,14 @@ pidfile /var/run/adb-server.pid
# verbose (many rarely useful info, but not a mess like the debug level) # verbose (many rarely useful info, but not a mess like the debug level)
# notice (moderately verbose, what you want in production probably) # notice (moderately verbose, what you want in production probably)
# warning (only very important / critical messages are logged) # warning (only very important / critical messages are logged)
loglevel notice #loglevel notice
loglevel warning
# Specify the log file name. Also the empty string can be used to force # Specify the log file name. Also the empty string can be used to force
# Redis to log on the standard output. Note that if you use standard # Redis to log on the standard output. Note that if you use standard
# output for logging but daemonize, logs will be sent to /dev/null # output for logging but daemonize, logs will be sent to /dev/null
#logfile /usr/local/etc/adb/log/adb-server.log #logfile /usr/local/etc/kvdb/log/kvdb-server.log
logfile "" logfile /usr/local/etc/kvdb/log/kvdb-server.log
# To enable logging to the system logger, just set 'syslog-enabled' to yes, # To enable logging to the system logger, just set 'syslog-enabled' to yes,
# and optionally update the other syslog parameters to suit your needs. # and optionally update the other syslog parameters to suit your needs.
@@ -471,7 +472,7 @@ rdb-del-sync-files no
# The Append Only File will also be created inside this directory. # The Append Only File will also be created inside this directory.
# #
# Note that you must specify a directory here, not a file name. # Note that you must specify a directory here, not a file name.
dir /usr/local/etc/adb dir /usr/local/etc/kvdb
################################# REPLICATION ################################# ################################# REPLICATION #################################
@@ -2081,7 +2082,3 @@ replica-weighting-factor 2
# disk space or any other I/O error Redis will instead use memory. # disk space or any other I/O error Redis will instead use memory.
# #
# blob-support false # blob-support false
# set slave of UDM primary redis
slaveof 172.16.5.140 6379
masterauth helloearth

View File

@@ -84,7 +84,7 @@
# mode. # mode.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#bind 127.0.0.1 -::1 #bind 127.0.0.1 -::1
bind 127.0.0.1 172.16.5.140 bind 127.0.0.1
# Protected mode is a layer of security protection, in order to avoid that # Protected mode is a layer of security protection, in order to avoid that
# Redis instances left open on the internet are accessed and exploited. # Redis instances left open on the internet are accessed and exploited.
@@ -304,7 +304,7 @@ daemonize yes
# #
# Creating a pid file is best effort: if Redis is not able to create it # Creating a pid file is best effort: if Redis is not able to create it
# nothing bad happens, the server will start and run normally. # nothing bad happens, the server will start and run normally.
pidfile /var/run/adb-server.pid pidfile /var/run/kvdb-server.pid
# Specify the server verbosity level. # Specify the server verbosity level.
# This can be one of: # This can be one of:
@@ -312,13 +312,14 @@ pidfile /var/run/adb-server.pid
# verbose (many rarely useful info, but not a mess like the debug level) # verbose (many rarely useful info, but not a mess like the debug level)
# notice (moderately verbose, what you want in production probably) # notice (moderately verbose, what you want in production probably)
# warning (only very important / critical messages are logged) # warning (only very important / critical messages are logged)
loglevel notice #loglevel notice
loglevel warning
# Specify the log file name. Also the empty string can be used to force # Specify the log file name. Also the empty string can be used to force
# Redis to log on the standard output. Note that if you use standard # Redis to log on the standard output. Note that if you use standard
# output for logging but daemonize, logs will be sent to /dev/null # output for logging but daemonize, logs will be sent to /dev/null
#logfile /usr/local/etc/adb/log/adb-server.log #logfile /usr/local/etc/kvdb/log/kvdb-server.log
logfile "" logfile /usr/local/etc/kvdb/log/kvdb-server.log
# To enable logging to the system logger, just set 'syslog-enabled' to yes, # To enable logging to the system logger, just set 'syslog-enabled' to yes,
# and optionally update the other syslog parameters to suit your needs. # and optionally update the other syslog parameters to suit your needs.
@@ -471,7 +472,7 @@ rdb-del-sync-files no
# The Append Only File will also be created inside this directory. # The Append Only File will also be created inside this directory.
# #
# Note that you must specify a directory here, not a file name. # Note that you must specify a directory here, not a file name.
dir /usr/local/etc/adb dir /usr/local/etc/kvdb
################################# REPLICATION ################################# ################################# REPLICATION #################################
@@ -502,6 +503,7 @@ dir /usr/local/etc/adb
# refuse the replica request. # refuse the replica request.
# #
# masterauth <master-password> # masterauth <master-password>
masterauth helloearth
# #
# However this is not enough if you are using Redis ACLs (for Redis version # However this is not enough if you are using Redis ACLs (for Redis version
# 6 or greater), and the default user is not capable of running the PSYNC # 6 or greater), and the default user is not capable of running the PSYNC
@@ -2057,8 +2059,7 @@ server-threads 2
# bringing up replicas can result in data loss (the first master will win). # bringing up replicas can result in data loss (the first master will win).
# active-replica yes # active-replica yes
active-replica yes active-replica yes
replicaof 172.16.5.141 6379 replicaof 10.0.0.2 6379
masterauth helloearth
# Redis will attempt to balance clients across threads evenly; However, replica clients # Redis will attempt to balance clients across threads evenly; However, replica clients
# are usually much more expensive than a normal client, and so Redis will try to assign # are usually much more expensive than a normal client, and so Redis will try to assign
@@ -2084,7 +2085,3 @@ replica-weighting-factor 2
# disk space or any other I/O error Redis will instead use memory. # disk space or any other I/O error Redis will instead use memory.
# #
# blob-support false # blob-support false
# set slave of UDM primary redis
slaveof 172.16.5.140 6379
masterauth helloearth

View File

@@ -1,6 +1,6 @@
[Service] [Service]
Type=forking Type=forking
ExecStart=/usr/local/bin/adb-server /usr/local/etc/adb/adb.conf ExecStart=/usr/local/bin/kvdb-server /usr/local/etc/kvdb/kvdb.conf
ExecStopPost= ExecStopPost=
PIDFile= PIDFile=
Restart=always Restart=always

File diff suppressed because it is too large Load Diff