Hello guys,
Is it possible to have dispatcher recompute the distribution list? i.e. one server goes down, all traffic for that server goes to the next one, doubling traffic on that one. Is there a way of, when a host becomes unreachable, recompute the whole list?
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
Hello,
this is possible with carrierroute by RPC command: https://kamailio.org/docs/modules/5.5.x/modules/carrierroute.html#carrierrou...
With dispatcher you could of course just adding one host two times by some script and reload the module, as a simple idea.
Cheers,
Henning
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of David Villasmil Sent: Monday, August 8, 2022 5:05 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: [SR-Users] recompute distribution list
Hello guys,
Is it possible to have dispatcher recompute the distribution list? i.e. one server goes down, all traffic for that server goes to the next one, doubling traffic on that one. Is there a way of, when a host becomes unreachable, recompute the whole list?
Regards,
David Villasmil email: david.villasmil.work@gmail.commailto:david.villasmil.work@gmail.com phone: +34669448337
Hey Henning, thanks for replying. Quick question: Adding (or removing) in memory recalculates without reloading?
On Mon, 8 Aug 2022 at 19:47, Henning Westerholt hw@gilawa.com wrote:
Hello,
this is possible with carrierroute by RPC command: https://kamailio.org/docs/modules/5.5.x/modules/carrierroute.html#carrierrou...
With dispatcher you could of course just adding one host two times by some script and reload the module, as a simple idea.
Cheers,
Henning
*From:* sr-users sr-users-bounces@lists.kamailio.org *On Behalf Of *David Villasmil *Sent:* Monday, August 8, 2022 5:05 PM *To:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* [SR-Users] recompute distribution list
Hello guys,
Is it possible to have dispatcher recompute the distribution list? i.e. one server goes down, all traffic for that server goes to the next one, doubling traffic on that one. Is there a way of, when a host becomes unreachable, recompute the whole list?
Regards,
David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337
With either module (Dispatcher or Carrierroute) , what would be the functional difference between 'reloading' and 'recalculating'?
Both modules can be controlled via RPC:
Dispatcher can be set to send OPTIONS messages to the hosts in it's tables to monitor endpoint status and dynamically bring the record in and out of service. Additionally any target's state can be changed administratively to disabled. Finally, if you update your datasource, dispatcher can be reloaded.
Carrierroute doesn't have any keepalive options, but supports adding and removing hosts, activating and deactivating hosts, and replacing hosts. Additionally, if carrierroute's data is updated (i.e. if reading from database) it can be completely reloaded.
Kaufman
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of David Villasmil Sent: Monday, August 8, 2022 1:39 PM To: Henning Westerholt hw@gilawa.com Cc: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] recompute distribution list
Hey Henning, thanks for replying. Quick question: Adding (or removing) in memory recalculates without reloading?
On Mon, 8 Aug 2022 at 19:47, Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> wrote: Hello,
this is possible with carrierroute by RPC command: https://kamailio.org/docs/modules/5.5.x/modules/carrierroute.html#carrierrou...https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkamailio.org%2Fdocs%2Fmodules%2F5.5.x%2Fmodules%2Fcarrierroute.html%23carrierroute.rpc.replace_host&data=05%7C01%7Cbkaufman%40bcmone.com%7Cdd11512c3b7f48deb52508da796d5884%7Cafc1818e7b6848568913201b9396c4fc%7C1%7C0%7C637955807795997743%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qtcVZl8iGypaFPL5lQ0UxMPKy1ipi%2B3WmJ1MkgXdNys%3D&reserved=0
With dispatcher you could of course just adding one host two times by some script and reload the module, as a simple idea.
Cheers,
Henning
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of David Villasmil Sent: Monday, August 8, 2022 5:05 PM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Subject: [SR-Users] recompute distribution list
Hello guys,
Is it possible to have dispatcher recompute the distribution list? i.e. one server goes down, all traffic for that server goes to the next one, doubling traffic on that one. Is there a way of, when a host becomes unreachable, recompute the whole list?
Regards,
David Villasmil email: david.villasmil.work@gmail.commailto:david.villasmil.work@gmail.com phone: +34669448337 -- Regards,
David Villasmil email: david.villasmil.work@gmail.commailto:david.villasmil.work@gmail.com phone: +34669448337
Difference is if you are distributing based off the username hash and a server goes down, it is simply set as “inactive”, but all calls that were going to that serve will now go to the next in the list, so all those calls will land on the next server basically doubling the traffic.
If, on the other hand, we recompute (reshuffle) the list ignoring the inactive servers, the traffic would be properly evenly distributed. This is what I’m looking for.
Thanks!
On Mon, 8 Aug 2022 at 22:03, Kaufman bkaufman@bcmone.com wrote:
With either module (Dispatcher or Carrierroute) , what would be the functional difference between ‘reloading’ and ‘recalculating’?
Both modules can be controlled via RPC:
Dispatcher can be set to send OPTIONS messages to the hosts in it’s tables to monitor endpoint status and dynamically bring the record in and out of service. Additionally any target’s state can be changed administratively to disabled. Finally, if you update your datasource, dispatcher can be reloaded.
Carrierroute doesn’t have any keepalive options, but supports adding and removing hosts, activating and deactivating hosts, and replacing hosts. Additionally, if carrierroute’s data is updated (i.e. if reading from database) it can be completely reloaded.
*Kaufman*
*From:* sr-users sr-users-bounces@lists.kamailio.org * On Behalf Of *David Villasmil *Sent:* Monday, August 8, 2022 1:39 PM *To:* Henning Westerholt hw@gilawa.com *Cc:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* Re: [SR-Users] recompute distribution list
Hey Henning, thanks for replying. Quick question: Adding (or removing) in memory recalculates without reloading?
On Mon, 8 Aug 2022 at 19:47, Henning Westerholt hw@gilawa.com wrote:
Hello,
this is possible with carrierroute by RPC command: https://kamailio.org/docs/modules/5.5.x/modules/carrierroute.html#carrierrou... https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkamailio.org%2Fdocs%2Fmodules%2F5.5.x%2Fmodules%2Fcarrierroute.html%23carrierroute.rpc.replace_host&data=05%7C01%7Cbkaufman%40bcmone.com%7Cdd11512c3b7f48deb52508da796d5884%7Cafc1818e7b6848568913201b9396c4fc%7C1%7C0%7C637955807795997743%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qtcVZl8iGypaFPL5lQ0UxMPKy1ipi%2B3WmJ1MkgXdNys%3D&reserved=0
With dispatcher you could of course just adding one host two times by some script and reload the module, as a simple idea.
Cheers,
Henning
*From:* sr-users sr-users-bounces@lists.kamailio.org *On Behalf Of *David Villasmil *Sent:* Monday, August 8, 2022 5:05 PM *To:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* [SR-Users] recompute distribution list
Hello guys,
Is it possible to have dispatcher recompute the distribution list? i.e. one server goes down, all traffic for that server goes to the next one, doubling traffic on that one. Is there a way of, when a host becomes unreachable, recompute the whole list?
Regards,
David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337
--
Regards,
David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337 __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Hello,
I still might not 100% understand your scenario.
If, on the other hand, we recompute (reshuffle) the list ignoring the inactive servers, the traffic would be properly evenly distributed. This is what I’m looking for.
But does dispatcher e.g. with a hash based distribution or round-robin does not fulfil this requirement already?
Cheers,
Henning
From: David Villasmil david.villasmil.work@gmail.com Sent: Monday, August 8, 2022 10:30 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: Henning Westerholt hw@gilawa.com Subject: Re: [SR-Users] recompute distribution list
Difference is if you are distributing based off the username hash and a server goes down, it is simply set as “inactive”, but all calls that were going to that serve will now go to the next in the list, so all those calls will land on the next server basically doubling the traffic.
If, on the other hand, we recompute (reshuffle) the list ignoring the inactive servers, the traffic would be properly evenly distributed. This is what I’m looking for.
Thanks!
On Mon, 8 Aug 2022 at 22:03, Kaufman <bkaufman@bcmone.commailto:bkaufman@bcmone.com> wrote: With either module (Dispatcher or Carrierroute) , what would be the functional difference between ‘reloading’ and ‘recalculating’?
Both modules can be controlled via RPC:
Dispatcher can be set to send OPTIONS messages to the hosts in it’s tables to monitor endpoint status and dynamically bring the record in and out of service. Additionally any target’s state can be changed administratively to disabled. Finally, if you update your datasource, dispatcher can be reloaded.
Carrierroute doesn’t have any keepalive options, but supports adding and removing hosts, activating and deactivating hosts, and replacing hosts. Additionally, if carrierroute’s data is updated (i.e. if reading from database) it can be completely reloaded.
Kaufman
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of David Villasmil Sent: Monday, August 8, 2022 1:39 PM To: Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> Cc: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] recompute distribution list
Hey Henning, thanks for replying. Quick question: Adding (or removing) in memory recalculates without reloading?
On Mon, 8 Aug 2022 at 19:47, Henning Westerholt <hw@gilawa.commailto:hw@gilawa.com> wrote: Hello,
this is possible with carrierroute by RPC command: https://kamailio.org/docs/modules/5.5.x/modules/carrierroute.html#carrierrou...https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkamailio.org%2Fdocs%2Fmodules%2F5.5.x%2Fmodules%2Fcarrierroute.html%23carrierroute.rpc.replace_host&data=05%7C01%7Cbkaufman%40bcmone.com%7Cdd11512c3b7f48deb52508da796d5884%7Cafc1818e7b6848568913201b9396c4fc%7C1%7C0%7C637955807795997743%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qtcVZl8iGypaFPL5lQ0UxMPKy1ipi%2B3WmJ1MkgXdNys%3D&reserved=0
With dispatcher you could of course just adding one host two times by some script and reload the module, as a simple idea.
Cheers,
Henning
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of David Villasmil Sent: Monday, August 8, 2022 5:05 PM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org> Subject: [SR-Users] recompute distribution list
Hello guys,
Is it possible to have dispatcher recompute the distribution list? i.e. one server goes down, all traffic for that server goes to the next one, doubling traffic on that one. Is there a way of, when a host becomes unreachable, recompute the whole list?
Regards,
David Villasmil email: david.villasmil.work@gmail.commailto:david.villasmil.work@gmail.com phone: +34669448337 -- Regards,
David Villasmil email: david.villasmil.work@gmail.commailto:david.villasmil.work@gmail.com phone: +34669448337 __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Regards,
David Villasmil email: david.villasmil.work@gmail.commailto:david.villasmil.work@gmail.com phone: +34669448337
I’m not using those algorithms, I’m using hash over username.
On Mon, 8 Aug 2022 at 22:34, Henning Westerholt hw@gilawa.com wrote:
Hello,
I still might not 100% understand your scenario.
If, on the other hand, we recompute (reshuffle) the list ignoring the inactive servers, the traffic would be properly evenly distributed. This is what I’m looking for.
But does dispatcher e.g. with a hash based distribution or round-robin does not fulfil this requirement already?
Cheers,
Henning
*From:* David Villasmil david.villasmil.work@gmail.com *Sent:* Monday, August 8, 2022 10:30 PM *To:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Cc:* Henning Westerholt hw@gilawa.com *Subject:* Re: [SR-Users] recompute distribution list
Difference is if you are distributing based off the username hash and a server goes down, it is simply set as “inactive”, but all calls that were going to that serve will now go to the next in the list, so all those calls will land on the next server basically doubling the traffic.
If, on the other hand, we recompute (reshuffle) the list ignoring the inactive servers, the traffic would be properly evenly distributed. This is what I’m looking for.
Thanks!
On Mon, 8 Aug 2022 at 22:03, Kaufman bkaufman@bcmone.com wrote:
With either module (Dispatcher or Carrierroute) , what would be the functional difference between ‘reloading’ and ‘recalculating’?
Both modules can be controlled via RPC:
Dispatcher can be set to send OPTIONS messages to the hosts in it’s tables to monitor endpoint status and dynamically bring the record in and out of service. Additionally any target’s state can be changed administratively to disabled. Finally, if you update your datasource, dispatcher can be reloaded.
Carrierroute doesn’t have any keepalive options, but supports adding and removing hosts, activating and deactivating hosts, and replacing hosts. Additionally, if carrierroute’s data is updated (i.e. if reading from database) it can be completely reloaded.
*Kaufman*
*From:* sr-users sr-users-bounces@lists.kamailio.org *On Behalf Of *David Villasmil *Sent:* Monday, August 8, 2022 1:39 PM *To:* Henning Westerholt hw@gilawa.com *Cc:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* Re: [SR-Users] recompute distribution list
Hey Henning, thanks for replying. Quick question: Adding (or removing) in memory recalculates without reloading?
On Mon, 8 Aug 2022 at 19:47, Henning Westerholt hw@gilawa.com wrote:
Hello,
this is possible with carrierroute by RPC command: https://kamailio.org/docs/modules/5.5.x/modules/carrierroute.html#carrierrou... https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkamailio.org%2Fdocs%2Fmodules%2F5.5.x%2Fmodules%2Fcarrierroute.html%23carrierroute.rpc.replace_host&data=05%7C01%7Cbkaufman%40bcmone.com%7Cdd11512c3b7f48deb52508da796d5884%7Cafc1818e7b6848568913201b9396c4fc%7C1%7C0%7C637955807795997743%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qtcVZl8iGypaFPL5lQ0UxMPKy1ipi%2B3WmJ1MkgXdNys%3D&reserved=0
With dispatcher you could of course just adding one host two times by some script and reload the module, as a simple idea.
Cheers,
Henning
*From:* sr-users sr-users-bounces@lists.kamailio.org *On Behalf Of *David Villasmil *Sent:* Monday, August 8, 2022 5:05 PM *To:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* [SR-Users] recompute distribution list
Hello guys,
Is it possible to have dispatcher recompute the distribution list? i.e. one server goes down, all traffic for that server goes to the next one, doubling traffic on that one. Is there a way of, when a host becomes unreachable, recompute the whole list?
Regards,
David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337
--
Regards,
David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
--
Regards,
David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337
When you use hash over username kamailio on reload creates the distribution lists I.e:
1- server5 2- server3 3- server8
Now, when a call from userB arrives, it will distribute it for instance to item 2, server3. And any other whose hash is about the same goes to the same.
Now, If server3 fails, it is just ignored, but the list is not recalculated, so all of those calls will go to item3 (server8)
On Mon, 8 Aug 2022 at 23:10, David Villasmil david.villasmil.work@gmail.com wrote:
I’m not using those algorithms, I’m using hash over username.
On Mon, 8 Aug 2022 at 22:34, Henning Westerholt hw@gilawa.com wrote:
Hello,
I still might not 100% understand your scenario.
If, on the other hand, we recompute (reshuffle) the list ignoring the inactive servers, the traffic would be properly evenly distributed. This is what I’m looking for.
But does dispatcher e.g. with a hash based distribution or round-robin does not fulfil this requirement already?
Cheers,
Henning
*From:* David Villasmil david.villasmil.work@gmail.com *Sent:* Monday, August 8, 2022 10:30 PM *To:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Cc:* Henning Westerholt hw@gilawa.com *Subject:* Re: [SR-Users] recompute distribution list
Difference is if you are distributing based off the username hash and a server goes down, it is simply set as “inactive”, but all calls that were going to that serve will now go to the next in the list, so all those calls will land on the next server basically doubling the traffic.
If, on the other hand, we recompute (reshuffle) the list ignoring the inactive servers, the traffic would be properly evenly distributed. This is what I’m looking for.
Thanks!
On Mon, 8 Aug 2022 at 22:03, Kaufman bkaufman@bcmone.com wrote:
With either module (Dispatcher or Carrierroute) , what would be the functional difference between ‘reloading’ and ‘recalculating’?
Both modules can be controlled via RPC:
Dispatcher can be set to send OPTIONS messages to the hosts in it’s tables to monitor endpoint status and dynamically bring the record in and out of service. Additionally any target’s state can be changed administratively to disabled. Finally, if you update your datasource, dispatcher can be reloaded.
Carrierroute doesn’t have any keepalive options, but supports adding and removing hosts, activating and deactivating hosts, and replacing hosts. Additionally, if carrierroute’s data is updated (i.e. if reading from database) it can be completely reloaded.
*Kaufman*
*From:* sr-users sr-users-bounces@lists.kamailio.org *On Behalf Of *David Villasmil *Sent:* Monday, August 8, 2022 1:39 PM *To:* Henning Westerholt hw@gilawa.com *Cc:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* Re: [SR-Users] recompute distribution list
Hey Henning, thanks for replying. Quick question: Adding (or removing) in memory recalculates without reloading?
On Mon, 8 Aug 2022 at 19:47, Henning Westerholt hw@gilawa.com wrote:
Hello,
this is possible with carrierroute by RPC command: https://kamailio.org/docs/modules/5.5.x/modules/carrierroute.html#carrierrou... https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkamailio.org%2Fdocs%2Fmodules%2F5.5.x%2Fmodules%2Fcarrierroute.html%23carrierroute.rpc.replace_host&data=05%7C01%7Cbkaufman%40bcmone.com%7Cdd11512c3b7f48deb52508da796d5884%7Cafc1818e7b6848568913201b9396c4fc%7C1%7C0%7C637955807795997743%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qtcVZl8iGypaFPL5lQ0UxMPKy1ipi%2B3WmJ1MkgXdNys%3D&reserved=0
With dispatcher you could of course just adding one host two times by some script and reload the module, as a simple idea.
Cheers,
Henning
*From:* sr-users sr-users-bounces@lists.kamailio.org *On Behalf Of *David Villasmil *Sent:* Monday, August 8, 2022 5:05 PM *To:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* [SR-Users] recompute distribution list
Hello guys,
Is it possible to have dispatcher recompute the distribution list? i.e. one server goes down, all traffic for that server goes to the next one, doubling traffic on that one. Is there a way of, when a host becomes unreachable, recompute the whole list?
Regards,
David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337
--
Regards,
David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
--
Regards,
David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337
-- Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337