Browse Source

add support for scheduler queue in mastodon v3.3.0

master
root 11 months ago
parent
commit
1056bf1f91
  1. 16
      assets/libloader.sh

16
assets/libloader.sh

@ -1,14 +1,16 @@
#!/bin/sh
#Tunables
TUN_SDK_DF_COUNT=40
TUN_SDK_DF_DBCNT=60
TUN_SDK_DF_COUNT=30
TUN_SDK_DF_DBCNT=45
TUN_SDK_PS_COUNT=15
TUN_SDK_PS_DBCNT=20
TUN_SDK_PL_COUNT=10
TUN_SDK_PL_DBCNT=15
TUN_SDK_ML_COUNT=8
TUN_SDK_ML_DBCNT=10
TUN_SDK_SC_COUNT=15
TUN_SDK_SC_DBCNT=25
TUN_WEB_CNC=2
TUN_WEB_THD=4
TUN_STR_NUM=4
@ -116,6 +118,15 @@ role_sk_main() {
export DB_POOL=$TUN_SDK_DF_DBCNT
CMD_RUN="$CMD_SDK -c $TUN_SDK_DF_COUNT -q default"
}
role_sk_sched() {
enrich mastodon
enrich db
enrich es
enrich sg
enrich vapid
export DB_POOL=$TUN_SDK_SC_DBCNT
CMD_RUN="$CMD_SDK -c $TUN_SDK_SC_COUNT -q scheduler"
}
role_sk_push() {
enrich mastodon
enrich db
@ -151,6 +162,7 @@ role_sk() {
push) role_sk_push;;
pull) role_sk_pull;;
mail) role_sk_mail;;
schd) role_sk_sched;;
*)
_err Sidekiq queue not recognised.
exit 1

Loading…
Cancel
Save