[sr-dev] [kamailio/kamailio] core:server_id is not sufficient enough to store the one that is generated for the ipv6 socket (#1322)

Daniel-Constantin Mierla notifications at github.com
Wed Nov 22 19:00:01 CET 2017


The server_id type is integer, which I consider to be more than enough for any very large deployment (the positive range is over 2 billion values, I am quite confident it is more than any foreseeable deployment would have in terms of number of server/kamailio instances).

The scope of server_id is to be fast in matching, not to add too much penalty. Otherwise it could have been a string.

You may want to store a value that is larger than integer, but others later may want to store something else where even long long is enough.

So in my opinion, integer is enough, server id is supposed to be a unique integer value in the deployment, not something else. But I am open to see opinions from others, if they find benefits or drawbacks.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1322#issuecomment-346428804
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20171122/7932c29a/attachment.html>


More information about the sr-dev mailing list