redis cache sharing for dialog storage?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

redis cache sharing for dialog storage?

jehanzaibkiani
Hi team,

I used redis cache for dialog storage. I have 2 different servers both are sharing the same redis. Is the profile size shared in this case?

here is the dialog config.

loadmodule "dialog.so"
modparam("dialog", "enable_stats", 1) 
modparam("dialog", "cachedb_url", "redis:mysip://mysipx.xx.xx:xxxx/")

This is how I check my profile size.
        create_dialog();
        set_dlg_profile("myuniqprof","$avp(myprofile_id)");
        get_profile_size("myuniqprof","$avp(myprofile_id)","$var(current_profile_size)");

Please note I am using version: opensips 1.11.3-notls


--
Regards,
Jehanzaib

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Thanks,

Jehanzaib
Reply | Threaded
Open this post in threaded view
|

Re: redis cache sharing for dialog storage?

SamyGo
I have a strong feeling that you're using an old version of opensips to expect it to share dialog states/profiles. I think you'll need to use newer opensips 2.4+ having dialog sharing capability using proto_bin and clusterer module:


On Mon, Nov 5, 2018 at 5:30 AM J E H A N Z A I B <[hidden email]> wrote:
Hi team,

I used redis cache for dialog storage. I have 2 different servers both are sharing the same redis. Is the profile size shared in this case?

here is the dialog config.

loadmodule "dialog.so"
modparam("dialog", "enable_stats", 1) 
modparam("dialog", "cachedb_url", "redis:mysip://mysipx.xx.xx:xxxx/")

This is how I check my profile size.
        create_dialog();
        set_dlg_profile("myuniqprof","$avp(myprofile_id)");
        get_profile_size("myuniqprof","$avp(myprofile_id)","$var(current_profile_size)");

Please note I am using version: opensips 1.11.3-notls


--
Regards,
Jehanzaib
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: redis cache sharing for dialog storage?

jehanzaibkiani
Hi there,

I am not sure why the dialog stats will not  be shared. If all records are going to redis then I have a redis cluster which synchs the cache. 
When I fetch the profile size it should be same (if it is being fetched from the redis) across all the opensips node. I am bit sceptical to upgrade without knowing what's happening. 


On Tue, Nov 6, 2018 at 4:53 AM SamyGo <[hidden email]> wrote:
I have a strong feeling that you're using an old version of opensips to expect it to share dialog states/profiles. I think you'll need to use newer opensips 2.4+ having dialog sharing capability using proto_bin and clusterer module:


On Mon, Nov 5, 2018 at 5:30 AM J E H A N Z A I B <[hidden email]> wrote:
Hi team,

I used redis cache for dialog storage. I have 2 different servers both are sharing the same redis. Is the profile size shared in this case?

here is the dialog config.

loadmodule "dialog.so"
modparam("dialog", "enable_stats", 1) 
modparam("dialog", "cachedb_url", "redis:mysip://mysipx.xx.xx:xxxx/")

This is how I check my profile size.
        create_dialog();
        set_dlg_profile("myuniqprof","$avp(myprofile_id)");
        get_profile_size("myuniqprof","$avp(myprofile_id)","$var(current_profile_size)");

Please note I am using version: opensips 1.11.3-notls


--
Regards,
Jehanzaib
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Regards,
Jehanzaib

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Thanks,

Jehanzaib
Reply | Threaded
Open this post in threaded view
|

Re: redis cache sharing for dialog storage?

Bogdan-Andrei Iancu-2
Hi Jehanzaib,

Again, use the /s marker - see http://www.opensips.org/html/docs/modules/2.4.x/dialog.html#param_profiles_with_value .

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/
On 11/06/2018 01:11 AM, J E H A N Z A I B wrote:
Hi there,

I am not sure why the dialog stats will not  be shared. If all records are going to redis then I have a redis cluster which synchs the cache. 
When I fetch the profile size it should be same (if it is being fetched from the redis) across all the opensips node. I am bit sceptical to upgrade without knowing what's happening. 


On Tue, Nov 6, 2018 at 4:53 AM SamyGo <[hidden email]> wrote:
I have a strong feeling that you're using an old version of opensips to expect it to share dialog states/profiles. I think you'll need to use newer opensips 2.4+ having dialog sharing capability using proto_bin and clusterer module:


On Mon, Nov 5, 2018 at 5:30 AM J E H A N Z A I B <[hidden email]> wrote:
Hi team,

I used redis cache for dialog storage. I have 2 different servers both are sharing the same redis. Is the profile size shared in this case?

here is the dialog config.

loadmodule "dialog.so"
modparam("dialog", "enable_stats", 1) 
modparam("dialog", "cachedb_url", "redis:mysip://mysipx.xx.xx:xxxx/")

This is how I check my profile size.
        create_dialog();
        set_dlg_profile("myuniqprof","$avp(myprofile_id)");
        get_profile_size("myuniqprof","$avp(myprofile_id)","$var(current_profile_size)");

Please note I am using version: opensips 1.11.3-notls


--
Regards,
Jehanzaib
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Regards,
Jehanzaib


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: redis cache sharing for dialog storage?

jehanzaibkiani
Thank you Bogdan.
Do I have to use /s marker for setting as well ?

set_dlg_profile("test/s"  ?

what about get_profile_size("test/s


On Thu, Nov 15, 2018 at 3:04 AM Bogdan-Andrei Iancu <[hidden email]> wrote:
Hi Jehanzaib,

Again, use the /s marker - see http://www.opensips.org/html/docs/modules/2.4.x/dialog.html#param_profiles_with_value .

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/
On 11/06/2018 01:11 AM, J E H A N Z A I B wrote:
Hi there,

I am not sure why the dialog stats will not  be shared. If all records are going to redis then I have a redis cluster which synchs the cache. 
When I fetch the profile size it should be same (if it is being fetched from the redis) across all the opensips node. I am bit sceptical to upgrade without knowing what's happening. 


On Tue, Nov 6, 2018 at 4:53 AM SamyGo <[hidden email]> wrote:
I have a strong feeling that you're using an old version of opensips to expect it to share dialog states/profiles. I think you'll need to use newer opensips 2.4+ having dialog sharing capability using proto_bin and clusterer module:


On Mon, Nov 5, 2018 at 5:30 AM J E H A N Z A I B <[hidden email]> wrote:
Hi team,

I used redis cache for dialog storage. I have 2 different servers both are sharing the same redis. Is the profile size shared in this case?

here is the dialog config.

loadmodule "dialog.so"
modparam("dialog", "enable_stats", 1) 
modparam("dialog", "cachedb_url", "redis:mysip://mysipx.xx.xx:xxxx/")

This is how I check my profile size.
        create_dialog();
        set_dlg_profile("myuniqprof","$avp(myprofile_id)");
        get_profile_size("myuniqprof","$avp(myprofile_id)","$var(current_profile_size)");

Please note I am using version: opensips 1.11.3-notls


--
Regards,
Jehanzaib
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Regards,
Jehanzaib


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
Regards,
Jehanzaib

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Thanks,

Jehanzaib
Reply | Threaded
Open this post in threaded view
|

Re: redis cache sharing for dialog storage?

Bogdan-Andrei Iancu-2
Yes, that is correct - you need to use the /s marker in all the places where you mention the profile.

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/
On 11/18/2018 07:50 AM, J E H A N Z A I B wrote:
Thank you Bogdan.
Do I have to use /s marker for setting as well ?

set_dlg_profile("test/s"  ?

what about get_profile_size("test/s


On Thu, Nov 15, 2018 at 3:04 AM Bogdan-Andrei Iancu <[hidden email]> wrote:
Hi Jehanzaib,

Again, use the /s marker - see http://www.opensips.org/html/docs/modules/2.4.x/dialog.html#param_profiles_with_value .

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/
On 11/06/2018 01:11 AM, J E H A N Z A I B wrote:
Hi there,

I am not sure why the dialog stats will not  be shared. If all records are going to redis then I have a redis cluster which synchs the cache. 
When I fetch the profile size it should be same (if it is being fetched from the redis) across all the opensips node. I am bit sceptical to upgrade without knowing what's happening. 


On Tue, Nov 6, 2018 at 4:53 AM SamyGo <[hidden email]> wrote:
I have a strong feeling that you're using an old version of opensips to expect it to share dialog states/profiles. I think you'll need to use newer opensips 2.4+ having dialog sharing capability using proto_bin and clusterer module:


On Mon, Nov 5, 2018 at 5:30 AM J E H A N Z A I B <[hidden email]> wrote:
Hi team,

I used redis cache for dialog storage. I have 2 different servers both are sharing the same redis. Is the profile size shared in this case?

here is the dialog config.

loadmodule "dialog.so"
modparam("dialog", "enable_stats", 1) 
modparam("dialog", "cachedb_url", "redis:mysip://mysipx.xx.xx:xxxx/")

This is how I check my profile size.
        create_dialog();
        set_dlg_profile("myuniqprof","$avp(myprofile_id)");
        get_profile_size("myuniqprof","$avp(myprofile_id)","$var(current_profile_size)");

Please note I am using version: opensips 1.11.3-notls


--
Regards,
Jehanzaib
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Regards,
Jehanzaib


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
Regards,
Jehanzaib


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users