mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
add libjemalloc for better performances
This commit is contained in:
parent
2f67e05982
commit
ac9d372699
3 changed files with 12 additions and 1 deletions
|
@ -118,7 +118,8 @@ ram.runtime = "200M"
|
|||
[resources.apt]
|
||||
packages = ["coturn", "acl", "postgresql", "php-fpm",
|
||||
"python3-dev", "python3-venv", "python3-pip", "python3-setuptools", "python3-lxml",
|
||||
"build-essential", "libffi-dev", "libssl-dev", "libxml2-dev", "libxslt1-dev", "zlib1g-dev", "libjpeg-dev", "libpq-dev"]
|
||||
"build-essential", "libffi-dev", "libssl-dev", "libxml2-dev", "libxslt1-dev",
|
||||
"zlib1g-dev", "libjpeg-dev", "libpq-dev", "libjemalloc-dev"]
|
||||
|
||||
[resources.database]
|
||||
type = "postgresql"
|
||||
|
|
|
@ -196,6 +196,10 @@ ynh_add_systemd_config --service=$app --template=synapse.service
|
|||
cp ../conf/default_coturn /etc/default/coturn-$app
|
||||
ynh_add_systemd_config --service=$app-coturn --template=synapse-coturn.service
|
||||
|
||||
# add libjemalloc.so to the matrix-synapse env file
|
||||
libjemalloc_path=$(whereis libjemalloc | cut -d ' ' -f 3)
|
||||
echo "LD_PRELOAD=$libjemalloc_path" >> "/etc/default/matrix-$app"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -466,6 +466,12 @@ ynh_add_systemd_config --service=$app --template=synapse.service
|
|||
cp ../conf/default_coturn /etc/default/coturn-$app
|
||||
ynh_add_systemd_config --service=$app-coturn --template=synapse-coturn.service
|
||||
|
||||
# if necessary, add libjemalloc.so to the matrix-synapse env file
|
||||
if ! grep -q "libjemalloc" "/etc/default/matrix-$app"; then
|
||||
libjemalloc_path=$(whereis libjemalloc | cut -d ' ' -f 3)
|
||||
echo "LD_PRELOAD=$libjemalloc_path" >> "/etc/default/matrix-$app"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# UPGRADE FAIL2BAN
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue