Hi,
I have some cline for several readers.
oscam.server:
Code
[reader]
label = group1.reader1
protocol = cccam
...
inactivitytimeout = 30
group = 1
lb_weight = 200
cccversion = 2.1.2
cccwantemu = 1
ccckeepalive = 1
ratelimitecm = 1
ratelimittime = 10000
srvidholdtime = 5000
[reader]
label = group2.reader1
protocol = cccam
...
inactivitytimeout = 30
group = 2
lb_weight = 200
cccversion = 2.1.2
cccwantemu = 1
ccckeepalive = 1
ratelimitecm = 1
ratelimittime = 10000
srvidholdtime = 5000
[reader]
label = group3.reader1
protocol = cccam_mcs
...
inactivitytimeout = 30
group = 3
cccversion = 2.1.2
cccwantemu = 1
ccckeepalive = 1
ratelimitecm = 1
ratelimittime = 10000
srvidholdtime = 5000
[reader]
label = group3.reader2
protocol = cccam_mcs
...
inactivitytimeout = 30
fallback = 1
group = 3
cccversion = 2.1.2
cccwantemu = 1
ccckeepalive = 1
ratelimitecm = 1
ratelimittime = 10000
srvidholdtime = 5000
[reader]
label = group3.reader3
protocol = cccam_mcs
...
inactivitytimeout = 30
fallback = 1
group = 3
cccversion = 2.1.2
cccwantemu = 1
ccckeepalive = 1
ratelimitecm = 1
ratelimittime = 10000
srvidholdtime = 5000
[reader]
label = group4.reader1
protocol = cccam_mcs
...
inactivitytimeout = 30
group = 4
cccversion = 2.1.2
cccwantemu = 1
ccckeepalive = 1
ratelimitecm = 1
ratelimittime = 10000
srvidholdtime = 5000
[reader]
label = group4.reader2
protocol = cccam_mcs
...
inactivitytimeout = 30
fallback = 1
group = 4
cccversion = 2.1.2
cccwantemu = 1
ccckeepalive = 1
ratelimitecm = 1
ratelimittime = 10000
srvidholdtime = 5000
[reader]
label = group4.reader3
protocol = cccam_mcs
...
inactivitytimeout = 30
fallback = 1
group = 4
cccversion = 2.1.2
cccwantemu = 1
ccckeepalive = 1
ratelimitecm = 1
ratelimittime = 10000
srvidholdtime = 5000
[reader]
label = group5.reader1
protocol = cccam_mcs
...
inactivitytimeout = 30
group = 5
cccversion = 2.1.2
cccwantemu = 1
ccckeepalive = 1
ratelimitecm = 1
ratelimittime = 10000
srvidholdtime = 5000
[reader]
label = group5.reader2
protocol = cccam_mcs
...
inactivitytimeout = 30
fallback = 1
group = 5
cccversion = 2.1.2
cccwantemu = 1
ccckeepalive = 1
ratelimitecm = 1
ratelimittime = 10000
srvidholdtime = 5000
[reader]
label = group5.reader3
protocol = cccam_mcs
...
inactivitytimeout = 30
fallback = 1
group = 5
cccversion = 2.1.2
cccwantemu = 1
ccckeepalive = 1
ratelimitecm = 1
ratelimittime = 10000
srvidholdtime = 5000
Display More
oscam.conf:
Code
[global]
nice = -1
WaitForCards = 1
usrfile = /storage/.kodi/userdata/addon_data/service.softcam.oscam/log/oscamuser.log
logfile = /storage/.kodi/userdata/addon_data/service.softcam.oscam/log/oscam.log
cwlogdir = /storage/.kodi/userdata/addon_data/service.softcam.oscam/log/cw
saveinithistory = 1
lb_mode = 1
lb_save = 100
lb_savepath = /storage/.kodi/userdata/addon_data/service.softcam.oscam/log/lbstat.log
loghistorysize = 1048576
maxlogsize = 1024
lb_retrylimit = 2500
Display More
I want to limit the ECM requests to 1 per 10 seconds per group. It looks like the ratelimitecm and ratelimittime config is okay (I don't know what the srvidholdtime means exaclty). But it limits each server, not per group.
The other issue is that the loadbalancer doesn't work properly.
Code
2019/02/25 18:51:28 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:89DFD4CAE628EADBF1067FD005EFB1A9): found (1323 ms) by group4.reader3 (P/3/4/16) - RTL+
2019/02/25 18:51:41 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:04E8C192361AF69F8BA5872B018B2BA9): found (4880 ms) by group3.reader2 (F/2/2/16) - RTL+ (real 3057 ms)
2019/02/25 18:51:47 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:A8AAB80DDFB77B02D099DBA0EFB3D53D): found (550 ms) by group4.reader4 (P/2/3/16) - RTL+
2019/02/25 18:51:58 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:FB7F0A8162A17E709A05018791D2B9F2): found (1992 ms) by group4.reader4 (P/1/2/16) - RTL+
2019/02/25 18:52:11 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:AA934AAC1F1962702AC7CCE860CB0CEE): timeout (5000 ms) group3.reader2 (F/2/2/16) - RTL+
2019/02/25 18:52:17 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:28B4834B962AF399399249EBA89A4D3F): found (607 ms) by group4.reader3 (P/2/3/16) - RTL+
2019/02/25 18:52:30 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:0F15E41664085526BF92A18E6CD902C2): found (3262 ms) by group3.reader3 (F/2/2/16) - RTL+ (real 1464 ms)
2019/02/25 18:52:39 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:DDDD9020244C3DE9F22819C9F9049987): found (3203 ms) by group3.reader3 (F/2/2/16) - RTL+ (real 703 ms)
2019/02/25 18:52:49 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:7FF03C9327D0A7111901CB46C61D0D9F): found (2731 ms) by group3.reader3 (F/3/3/16) - RTL+ (real 896 ms)
2019/02/25 18:52:59 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:811DDA83D75C282F00BFC8881BCA6EBC): found (2875 ms) by group3.reader3 (F/2/2/16) - RTL+ (real 901 ms)
2019/02/25 18:53:09 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:DFEB2F75E965637C291CFBC22516E580): found (3104 ms) by group3.reader3 (F/3/3/16) - RTL+ (real 604 ms)
2019/02/25 18:53:17 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:01C56CE778F98C598BD7C9BECBD30C7F): found (845 ms) by group3.reader2 (P/3/4/16) - RTL+
2019/02/25 18:53:27 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:EEFF56844B555E2183FE788CFB429F22): found (590 ms) by group5.reader6 (P/2/3/16) - RTL+
2019/02/25 18:53:37 28848541 c (ecm) tvheadend (0D97@000004/0000/79ED/B8:BCF0AF7D4F84FA134398ED0080A56A04): found (786 ms) by group5.reader6 (P/2/3/16) - RTL+
Display More
As you can see the readers in group3 are not the fastest ones. But I have no idea why the LB tries to use these readers instead of the other ones. Unfortunately it causes freezes due to late ECM response.
Could you help me what is the best way to configure multiple servers in Oscam?
Thanks in advance,
Speederer