-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #646 from midoks/dev
valkey插件,redis的平替
- Loading branch information
Showing
29 changed files
with
1,577 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"sort":2, | ||
"hook":["database"], | ||
"title":"MariaDB", | ||
"tip":"soft", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"sort": 7, | ||
"sort": 5, | ||
"ps": "是一个高性能的分布式内存对象缓存系统", | ||
"name": "memcached", | ||
"title": "Memcached", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"sort": 7, | ||
"sort":3, | ||
"hook":["database"], | ||
"ps": "一个高性能的NOSQL数据库【社区版】", | ||
"name": "mongodb", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"sort":1, | ||
"title":"MySQL", | ||
"tip":"soft", | ||
"name":"mysql", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"sort":3, | ||
"title":"OP负载均衡", | ||
"tip":"soft", | ||
"name":"op_load_balance", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
} | ||
} | ||
], | ||
"sort":2, | ||
"title":"OP防火墙", | ||
"tip":"soft", | ||
"name":"op_waf", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"sort": 0, | ||
"title":"OpenResty", | ||
"tip":"soft", | ||
"name":"openresty", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"sort": 7, | ||
"sort": 5, | ||
"ps": "监控PHP-FPM运行状态,防止大批量出现502错误!", | ||
"shell": "install.sh", | ||
"name": "php-guard", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"hook":["database"], | ||
"sort": 6, | ||
"title":"PostgreSQL", | ||
"tip":"soft", | ||
"name":"postgresql", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"sort": 7, | ||
"sort":4, | ||
"ps": "一个高性能的KV数据库", | ||
"name": "redis", | ||
"title": "Redis", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
daemonize yes | ||
pidfile {$SERVER_PATH}/valkey/valkey.pid | ||
|
||
bind 127.0.0.1 | ||
port 6389 | ||
requirepass {$VALKEY_PASS} | ||
|
||
timeout 3 | ||
tcp-keepalive 0 | ||
|
||
loglevel notice | ||
|
||
logfile {$SERVER_PATH}/valkey/data/valkey.log | ||
databases 16 | ||
|
||
################################ SNAPSHOTTING ################################# | ||
|
||
save 900 1000 | ||
save 300 10000 | ||
save 60 1000000 | ||
stop-writes-on-bgsave-error no | ||
rdbcompression yes | ||
rdbchecksum yes | ||
dbfilename dump.rdb | ||
dir {$SERVER_PATH}/valkey/data/ | ||
|
||
################################# REPLICATION ################################# | ||
|
||
slave-serve-stale-data yes | ||
slave-read-only yes | ||
|
||
repl-disable-tcp-nodelay no | ||
slave-priority 100 | ||
|
||
################################## SECURITY ################################### | ||
|
||
|
||
################################### LIMITS #################################### | ||
maxclients 10000 | ||
#maxmemory-samples 3 | ||
maxmemory 218mb | ||
maxmemory-policy volatile-ttl | ||
#maxmemory-policy allkeys-lru | ||
|
||
############################## APPEND ONLY MODE ############################### | ||
|
||
# appendonly no | ||
|
||
# appendfsync always | ||
# appendfsync everysec | ||
# appendfsync no | ||
|
||
# appendfilename "appendonly.aof" | ||
|
||
no-appendfsync-on-rewrite no | ||
auto-aof-rewrite-percentage 100 | ||
auto-aof-rewrite-min-size 64mb | ||
|
||
################################ LUA SCRIPTING ############################### | ||
|
||
lua-time-limit 5000 | ||
|
||
################################## SLOW LOG ################################### | ||
|
||
|
||
slowlog-log-slower-than 10000 | ||
slowlog-max-len 128 | ||
|
||
############################### ADVANCED CONFIG ############################### | ||
|
||
hash-max-ziplist-entries 512 | ||
hash-max-ziplist-value 64 | ||
|
||
list-max-ziplist-entries 512 | ||
list-max-ziplist-value 64 | ||
|
||
set-max-intset-entries 512 | ||
|
||
zset-max-ziplist-entries 128 | ||
zset-max-ziplist-value 64 | ||
|
||
activerehashing yes | ||
|
||
client-output-buffer-limit normal 0 0 0 | ||
client-output-buffer-limit slave 256mb 64mb 60 | ||
client-output-buffer-limit pubsub 32mb 8mb 60 | ||
|
||
hz 10 | ||
|
||
aof-rewrite-incremental-fsync yes |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<style> | ||
.overflow_hide { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
vertical-align: middle; | ||
} | ||
</style> | ||
|
||
<div class="bt-form"> | ||
<div class='plugin_version'></div> | ||
<div class="bt-w-main"> | ||
<div class="bt-w-menu"> | ||
<p class="bgw" onclick="pluginService('valkey');">服务</p> | ||
<p onclick="pluginInitD('valkey');">自启动</p> | ||
<p onclick="pluginConfigTpl('valkey',$('.plugin_version').attr('version'));">配置修改</p> | ||
<!-- <p onclick="pluginConfig('valkey');">配置修改</p> --> | ||
<p onclick="getRedisConfig($('.plugin_version').attr('version'));">性能调整</p> | ||
<p onclick="redisStatus($('.plugin_version').attr('version'));">负载状态</p> | ||
<p onclick="replStatus($('.plugin_version').attr('version'));">复制状态</p> | ||
<p onclick="clusterStatus($('.plugin_version').attr('version'));">集群状态</p> | ||
<p onclick="clusterNodes($('.plugin_version').attr('version'));">集群节点</p> | ||
<p onclick="pluginLogs('valkey','','run_log');">运行日志</p> | ||
<p onclick="valkeyReadme();">相关说明</p> | ||
|
||
</div> | ||
<div class="bt-w-con pd15"> | ||
<div class="soft-man-con" style="height: 520px; overflow: auto;"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<script type="text/javascript"> | ||
$.getScript( "/plugins/file?name=valkey&f=js/valkey.js", function(){ | ||
pluginService('valkey', $('.plugin_version').attr('version')); | ||
}); | ||
</script> |
Oops, something went wrong.