Browse Source

tweaked tunables, split the pushpull sidekiq into two separate ones

master
root 4 months ago
parent
commit
20a5be92e0
1 changed files with 18 additions and 7 deletions
  1. 25
      assets/libloader.sh

25
assets/libloader.sh

@ -1,10 +1,12 @@
#!/bin/sh
#Tunables
TUN_SDK_DF_COUNT=70
TUN_SDK_DF_COUNT=40
TUN_SDK_DF_DBCNT=80
TUN_SDK_PP_COUNT=35
TUN_SDK_PP_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_WEB_CNC=2
@ -114,15 +116,23 @@ role_sk_main() {
export DB_POOL=$TUN_SDK_DF_DBCNT
CMD_RUN="$CMD_SDK -c $TUN_SDK_DF_COUNT -q default"
}
role_sk_pushpull() {
role_sk_push() {
enrich mastodon
enrich db
enrich es
enrich vapid
enrich sg
export DB_POOL=$TUN_SDK_PP_DBCNT
CMD_RUN="$CMD_SDK -c $TUN_SDK_PP_COUNT -q push -q pull"
export DB_POOL=$TUN_SDK_PS_DBCNT
CMD_RUN="$CMD_SDK -c $TUN_SDK_PS_COUNT -q push"
}
role_sk_pull() {
enrich mastodon
enrich db
enrich es
enrich vapid
enrich sg
export DB_POOL=$TUN_SDK_PL_DBCNT
CMD_RUN="$CMD_SDK -c $TUN_SDK_PL_COUNT -q pull"
role_sk_mail() {
enrich mastodon
enrich db
@ -137,7 +147,8 @@ role_sk() {
fi
case "$QUEUE" in
main) role_sk_main;;
pushpull) role_sk_pushpull;;
push) role_sk_push;;
pull) role_sk_pull;;
mail) role_sk_mail;;
*)
_err Sidekiq queue not recognised.

Loading…
Cancel
Save