[sr-dev] [kamailio/kamailio] memory configuration using environment vars (#1252)

Luis Azedo luis at 2600hz.com
Thu Sep 28 21:02:00 CEST 2017


i think you can set shm_mem_size in script to a #DEFINE that can be overridden with -A


in script


#DEFINE SHM_MEM 64


shm_mem_size = #DEFINE



then kamailio -A SHM_MEM=32


haven't tried it, but Daniel mentioned -A in the devel meeting.


not sure if there's a pkg_mem we can also use.


________________________________
From: sr-dev <sr-dev-bounces at lists.kamailio.org> on behalf of sergey-safarov <notifications at github.com>
Sent: Thursday, September 28, 2017 8:47:21 AM
To: Kamailio Devel List
Cc: Subscribed
Subject: [sr-dev] [kamailio/kamailio] memory configuration using environment vars (#1252)

Description

Docker container at runtime is configured using environment vars.
Kamailio now not supports configure memory using environment vars and need use workarroud like entrypoint.sh<https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/alpine_docker/entrypoint.sh>.

I want remove this workarround but need to add ability to configure kamailio memory using vars SHM_MEMORY and PKG_MEMORY when kamailio started without -m and -M keys

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://github.com/kamailio/kamailio/issues/1252>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AF36ZbTOBRJvkq6OuGbbDi4stexxgAN-ks5sm08JgaJpZM4Pm2tJ>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170928/48b8e6ac/attachment-0002.html>


More information about the sr-dev mailing list