Oscam and Loadbalancer
Loadbalancing feature in OScam helps to determine which of the configured readers should be used to serve an ECM request. This is especially handy if you have two identical local cards or large number of cccam/newcamd or other readers. I will present you my loadbalancing configuration that i use on my OScam server.
First you need to visit global/loadbalancer section of WebIF. Then search for these settings:
lb_mode = 1
lb_save = 100
lb_reopen_mode = 1
lb_savepath = /usr/local/etc/stats
lb_mode = 1 means that the weight for a reader is divided by the average response time of requests sent to the reader, i.e. lower average response time means higher priority. My recommendation is that you use mode 1.
lb_save = 100 means that stats file is updated every 100 ecm. If you have OScam on your PC (more CPU power) than you can decrease this setting to 50 or even lower. If you have OScam on satellite receiver then you should leave default value which is 100.
lb_reopen_mode = 1 is my recommended setting.
lb_savepath can be changed. I use /usr/local/etc/stats but you can use something else if you want or need.
You do not need to change anything else here. Now you need to visit reader part of WebIF and modify lb_weight value. I suggest that you put lb_weight = 300 if you have local cards. This means that these local cards will have priority over normal readers (cccam/newcamd/camd35, etc.). For other readers you can just leave default value which is 100. If you have 0100 Cyfra local card, you probably do not want that OScam uses this card from cccam readers. Well, loadbalancing will help you achieving this goal.
I think I covered all loadbalancing basics and you are now good to go. If you have any questions, please use “Contact Us” form or leave a comment!
Last edited by Hotzenwalder; 13-04-2013 at 04:37 PM.
By AlloCCcam in forum Smart Cards & CardShare General
Last Post: 16-07-2013, 01:56 AM
By Vitor Sousa in forum Smart Cards & CardShare General
Last Post: 15-07-2013, 11:57 PM
By AlloCCcam in forum Azbox / Microbox Receivers Support
Last Post: 15-07-2013, 01:21 AM
By Hotzenwalder in forum Oscam Support
Last Post: 25-04-2013, 09:12 PM
By Hotzenwalder in forum Oscam Tutorials
Last Post: 13-04-2013, 03:42 PM
Tags for this Thread
All posts written express the point of view of its owner, does not imply in any way the point of view of management forum.