HI
I currently have two proxy servers running in my environment, and I want to upgrade Kamailio from version 5.4.7 to 5.6.
Can I recompile the Kamailio service before restarting it without downtime ? Will there be any impact on my production environment if I recompile Kamailio to the newer version? If there is no impact, I expect approximately 2 minutes of downtime during the service restart.
Here's the scenario:
*No Downtime:* Clone the Kamailio repository with git clone https://github.com/kamailio/kamailio.git Navigate to the Kamailio directory with cd kamailio Update the modules.lst file with any necessary additions Compile with make Install with make install
*Downtime:*Restart the Kamailio service.
Please advise on this.
Thanks.
If you do not store dialogs in the memory and not rely on transactional variables used for passing data between request/reply handling there is nothing bad regarding the downtime as state handled by the UA but not by proxy
If you depend on such things the migration is really depends on your infrastructure ( using DNS as failover or VRRP and HA, or build cluster with DMQ, or distribute data between nodes over database) so in general advice - have multiple instances and transit traffic to one while upgrading another...
On Wed, Apr 17, 2024, 18:59 satyaprakash ch via sr-users < sr-users@lists.kamailio.org> wrote:
HI
I currently have two proxy servers running in my environment, and I want to upgrade Kamailio from version 5.4.7 to 5.6.
Can I recompile the Kamailio service before restarting it without downtime ? Will there be any impact on my production environment if I recompile Kamailio to the newer version? If there is no impact, I expect approximately 2 minutes of downtime during the service restart.
Here's the scenario:
*No Downtime:* Clone the Kamailio repository with git clone https://github.com/kamailio/kamailio.git Navigate to the Kamailio directory with cd kamailio Update the modules.lst file with any necessary additions Compile with make Install with make install
*Downtime:*Restart the Kamailio service.
Please advise on this.
Thanks. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
You can definitely compile (`make`) without downtime. Installation without downtime is likely safe, but I don't think you'll find many people willing to give you a guarantee on it. The biggest problems with just running `make install` blindly are the potential to clobber config files or anything continuously run. If memory serves, there is a "make deinstall" (or similar) option that doesn't actually execute anything but will generate a list of files to be deleted. The last time I did an upgrade that required recompilation I used this to create a small shell script of things to delete. I then upgraded like:
service kamaliio stop && cp /etc/kamailio /etc/kamailio.bak && kamailio_uninstall.sh && make install && mv /etc/kamailio /etc/kamailio.orig && mv /etc/kamailio.bak /etc/kamailio && service kamailio start
This is probably overkill, but I think it took less than a minute to actually run.
From: satyaprakash ch via sr-users sr-users@lists.kamailio.org Sent: Wednesday, April 17, 2024 11:19 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: satyaprakash ch chiramchetty.satyaprakash@gmail.com Subject: [SR-Users] compile without downtime
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
HI
I currently have two proxy servers running in my environment, and I want to upgrade Kamailio from version 5.4.7 to 5.6.
Can I recompile the Kamailio service before restarting it without downtime ? Will there be any impact on my production environment if I recompile Kamailio to the newer version? If there is no impact, I expect approximately 2 minutes of downtime during the service restart.
Here's the scenario:
No Downtime: Clone the Kamailio repository with git clone https://github.com/kamailio/kamailio.git Navigate to the Kamailio directory with cd kamailio Update the modules.lst file with any necessary additions Compile with make Install with make install Downtime: Restart the Kamailio service.
Please advise on this.
Thanks.