[OpenSIPS-Users] mulitple instance for different rules

Newlin, Ben Ben.Newlin at inin.com
Wed Sep 14 16:05:06 CEST 2016


I’m not sure I understand. One of the main advantages of Docker is eliminating portability issues. A container built anywhere will run the same on any other box. If you want two applications on one server then you start two containers on that server. If you want one on each server then you start one on each. If you need to add capacity, you start more containers.

We are currently doing this with our deployment. In our testing environments we have fewer physical servers to save costs, so we deploy multiple applications on each. In our production environment we spread out the applications across more boxes.

How you manage where the containers deploy is an entirely different question. Obviously it can be done manually, or any number of configuration management systems can do it for you including Docker’s own Swarm application. We are currently using Puppet, although I’m not sure I would recommend it.


Ben Newlin

From: ‪H Yavari ‪ <hyavari at rocketmail.com>
Reply-To: ‪H Yavari ‪ <hyavari at rocketmail.com>
Date: Wednesday, September 14, 2016 at 2:10 AM
To: "Newlin, Ben" <Ben.Newlin at inin.com>, OpenSIPS users mailling list <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] mulitple instance for different rules

Hi,

Yes Docker is good solution. But I'm looking for a solution to expand easily. I mean I want to run 2 OpenSIPS instance on one machine for low loads and for high loads I run 2 instances on different machines. So if I use Docker, I have portability problem and this is difficult to maintain 2 different arch.
Do you agree with me?

Regards,
H.Yavari

________________________________
From: "Newlin, Ben" <Ben.Newlin at inin.com>
To: ‪H Yavari ‪ <hyavari at rocketmail.com>; OpenSIPS users mailling list <users at lists.opensips.org>
Sent: Wednesday, 7 September 2016, 18:00:47
Subject: Re: [OpenSIPS-Users] mulitple instance for different rules

Docker runs on the physical server. You can use it to run multiple different instances of any application. It uses objects called containers to run the applications in separate namespaces so they are not aware of each other and will not conflict for resources.

Running 2 instances of OpenSIPS on the same box without Docker is almost certainly possible, but I’m sure there are many different issues that can arise and I can’t really say how difficult it would be, having not done it myself.


Ben Newlin

From: ‪H Yavari ‪ <hyavari at rocketmail.com>
Reply-To: ‪H Yavari ‪ <hyavari at rocketmail.com>
Date: Wednesday, September 7, 2016 at 9:26 AM
To: "Newlin, Ben" <Ben.Newlin at inin.com>, OpenSIPS users mailling list <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] mulitple instance for different rules

Hi,

I want to have physical server. running 2 instances is ok?

________________________________
From: "Newlin, Ben" <Ben.Newlin at inin.com>
To: ‪H Yavari ‪ <hyavari at rocketmail.com>; OpenSIPS users mailling list <users at lists.opensips.org>
Sent: Wednesday, 7 September 2016, 16:13:19
Subject: Re: [OpenSIPS-Users] mulitple instance for different rules

I would recommend using Docker for this to ensure the 2 instances of OpenSIPS are isolated from each other. We are running OpenSIPS in Docker with multiple containers on a single machine with great success. It also makes local testing very simple, especially with a SIPp container as well.

https://www.docker.com


Ben Newlin

From: <users-bounces at lists.opensips.org> on behalf of ‪H Yavari ‪ <hyavari at rocketmail.com>
Reply-To: ‪H Yavari ‪ <hyavari at rocketmail.com>, OpenSIPS users mailling list <users at lists.opensips.org>
Date: Wednesday, September 7, 2016 at 7:36 AM
To: "users at lists.opensips.org" <users at lists.opensips.org>
Subject: [OpenSIPS-Users] mulitple instance for different rules



Hi to all,

I want to run 2 instances of OpenSIPS on same machine and use each of them for some tasks. for example one instance for load balancing and other for registration and routing. I want use this arch for flexible expansion. Is it good idea? It makes more load on the same node?

If the answer is yes, I should compile two time with different names or I can make symbolic links from one compiled instance?


Thanks for reply.


Regards,
H.Yavari




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160914/425c1ed6/attachment-0001.htm>


More information about the Users mailing list