one storage for tv archive, multiple stalker MW servers

4,649 views
Skip to first unread message

Milen Minev

unread,
Oct 3, 2013, 8:44:49 AM10/3/13
to stalker-m...@googlegroups.com
Is it possible to have one storage for tv archive and multiple MW servers that are using it simultaneously ?

I`v tested briefly to add existing storage to second stalker server. 

Rewind backward using arrows is working but choosing tv show from epg list gives "file not found".

If I go to the storage and fill in config.php PORTAL_URL with address of stalker server currently I am on, It starts to work.
However the clients from the first server stopped to be able to rewind 

Is it possible to have one storage on multiple servers, they are with the same mysql db backend just different ips ?

I want clients on all servers to utilize the storage tv archive.

I am using latest stalker MW (4.6.68) on both servers and storage.

Regards, 
Milen

Aleksey Zhurbitsky

unread,
Oct 3, 2013, 10:56:08 AM10/3/13
to stalker-m...@googlegroups.com
Yes, it is possible. On the second server you can add this archive storage with enabled options "Record TV" and "Emulation".
Also both MW servers must use one memcached server.

Milen Minev

unread,
Oct 3, 2013, 3:13:22 PM10/3/13
to stalker-m...@googlegroups.com
Yes, memcached is on the same machine with Mysql server.

Because this dedicated DB server is with 386GB of memory, I am thinking to move mysql database files on tmpfs on boot and sync with hdd from time to time. 
I hope this will make things a little bit faster.

Milen Minev

unread,
Oct 16, 2013, 9:15:29 AM10/16/13
to stalker-m...@googlegroups.com
Its not working, on the second stalker (with checked Record TV and Emulation) when I try to choose recorded tvshow from EPG list i get Missing file and apache throws:

[Wed Oct 16 16:02:40 2013] [error] [client 10.100.1.1] TV archive: Not valid token 6a6ff9e3bafa587b753cf34298ffb960

If I try to use << and >> buttons while watching tvshow with tv archive enabled , rewind is working just fine but its going thru nginx and played directly from archive folder.

What can be the problem ?



03 октомври 2013, четвъртък, 17:56:08 UTC+3, Aleksey Zhurbitsky написа:

Aleksey Zhurbitsky

unread,
Oct 16, 2013, 9:24:35 AM10/16/13
to stalker-m...@googlegroups.com
Also both MW servers must use one memcached server.
Are you shure that both MW servers (portal 1 and portal 2) use one memcached server?

Milen Minev

unread,
Oct 16, 2013, 10:10:23 AM10/16/13
to stalker-m...@googlegroups.com
Ops...

My bad, sorry!

Rich W

unread,
Mar 26, 2014, 8:10:19 PM3/26/14
to stalker-m...@googlegroups.com
Please explain how 2 stalker servers use 1 memcached

Thanks

Aleksey Zhurbitsky

unread,
Mar 28, 2014, 8:29:27 AM3/28/14
to stalker-m...@googlegroups.com
For example you have two portals 
A - 192.168.1.100
B - 192.168.1.101
Now you can share memcache on server A to server B, just add on server B in server/custom.ini
memcache_host = 192.168.1.100
Of cause should make memcache port accessable for server B (in firewall and in memcache config).

Rich W

unread,
Apr 6, 2014, 6:40:06 PM4/6/14
to stalker-m...@googlegroups.com
Just another question on this , will the config.php in /storage/ on server B have ip addresses for each storage location pointing to server A. ?

Example http://(server ip )/ media/records

Rich W

unread,
Apr 6, 2014, 6:40:06 PM4/6/14
to stalker-m...@googlegroups.com

Aleksey Zhurbitsky

unread,
Apr 7, 2014, 3:54:22 AM4/7/14
to stalker-m...@googlegroups.com
Server B is storage (archive)?
You should change /storage/config.php only on storages.

xrtc

unread,
Aug 5, 2014, 1:41:49 AM8/5/14
to stalker-m...@googlegroups.com
All working perfect,

but there is a problem,

cause we use 1 memcached server, users on portal2 are show always offline in users.php page.

Any trick how to fix that?

smirnof

unread,
Mar 11, 2015, 5:56:01 AM3/11/15
to stalker-m...@googlegroups.com
Is it possible to have 2-3 storages?
What changes should i do on the portal side? 
I added a storage in the portal admin, but don't know should the sotrage config.php look like?

Aleksey Zhurbitsky

unread,
Mar 11, 2015, 10:30:01 AM3/11/15
to stalker-m...@googlegroups.com
Is it possible to have 2-3 storages?
Yes

but don't know should the sotrage config.php look like?

smirnof

unread,
Mar 12, 2015, 3:22:13 AM3/12/15
to stalker-m...@googlegroups.com
good, i get it work.
Thanks

smirnof

unread,
Mar 17, 2015, 7:20:10 AM3/17/15
to stalker-m...@googlegroups.com
as i got 3 storages, 2 for tv archive and 1 for VoD, i am trying to get the VoD into the needed storage, but can't select the needed storage to fill in stalker portal.
How to define the correct storage (videoClub) to use when multiple storages?

Thanks

Aleksey Zhurbitsky

unread,
Mar 17, 2015, 9:56:56 AM3/17/15
to stalker-m...@googlegroups.com
It will be automatically selected. Just put the video file in required folder on the storage and click on the movie name the admin panel.

smirnof

unread,
Mar 18, 2015, 7:44:54 AM3/18/15
to stalker-m...@googlegroups.com

I do net get any errors.. the api works fine, i get this info {"status":"OK","results":{"series":[],"series_file":[],"files":[]}}
but when i create a directory it still RED, and do not got it on the server! no errors in apache, nginx, only in the sotrage part:
2015-03-18 12:43:01Result cannot be decoded. Result: Not found

Any help please?

Aleksey Zhurbitsky

unread,
Mar 20, 2015, 7:41:18 AM3/20/15
to stalker-m...@googlegroups.com
{"status":"OK","results":{"series":[],"series_file":[],"files":[]}}
Where do you see this? 

Result cannot be decoded. Result: Not found
Check apache/nginx error log on the storage. Looks like you have problem with storage configuration.

netmaster

unread,
May 14, 2015, 7:04:08 AM5/14/15
to stalker-m...@googlegroups.com
before I start twinkering with storage servers, I have some theoretical question:

If for example on current MW server, FOX channel is with ID number 25. On archive server, all it's records will be saved to ..../records/archive/25/ directory. Everything works.
Adding second MW server, where same FOX channel is with ID number 17, then how it will know, that in first MW server and in archive server it is with ID number 25?
Or two MW servers must share identical channel set as well?

Aleksey Zhurbitsky

unread,
May 15, 2015, 5:57:50 AM5/15/15
to stalker-m...@googlegroups.com
Or two MW servers must share identical channel set as well?
Yes, that is correct. 

netmaster

unread,
May 15, 2015, 7:20:10 AM5/15/15
to stalker-m...@googlegroups.com
After several years of adding and removing channels, my ID's are totally random numbers.
Now I did install new Stalker, but how to insert channels there with same ID's? And how to be sure, that they stay with the same ID's?
Or is somehow possible to share only channels part of database between Stalkers?
I think, simpler would be to install additional tv-archive server as well ...

Aleksey Zhurbitsky

unread,
May 18, 2015, 5:10:07 AM5/18/15
to stalker-m...@googlegroups.com
Yes, you can export-import tables itv and ch_links, but all data, such as user favs and last played channels should be deleted because they are connected with itv table.
Another way is to use symlink to make virtual copy of folder with recorded files with name that you need.

netmaster

unread,
May 18, 2015, 5:30:13 AM5/18/15
to stalker-m...@googlegroups.com

yes, I already did that. Added new virtual server with new copy of Stalkers storage, and make symlinks between folders. Archive works that way, but for some reason timeshift do not. When I push pause, and after 30s play again, then it starts to play, but wrong channel. I have not had time to investigate why exactly.

Aleksey Zhurbitsky

unread,
May 18, 2015, 10:02:52 AM5/18/15
to stalker-m...@googlegroups.com
Debug log may help in this problem.

Saule

unread,
Feb 1, 2017, 2:10:12 PM2/1/17
to Stalker Middleware
объясните, как прописать memcahed, если есть один сталкер портал и два удалённые хранилища?

tos

unread,
Feb 2, 2017, 4:01:47 AM2/2/17
to Stalker Middleware
memcached нужен для хранения временных ссылок. То есть доступ к нему нужен самому сталкеру, поскольку он генерит эти ссылки, и серверу вещания, который проверяет эти ссылки.
По умолчанию memcached слушает не на всех интерфейсах, а только на localhost, потому сначала надо изменить настройки memcached:
-l 0.0.0.0
Далее надо закрыть файерволлом порт memcached  для всех, кроме своих серверов. Ну а дальше использовать адрес сервера memcached  в настройках Ваших серверов вещания.
В сталкере это директива
memcache_host = 192.168.1.100
Что касается серверов вещания - то там всё индивидуально.

среда, 1 февраля 2017 г., 21:10:12 UTC+2 пользователь Saule написал:
Reply all
Reply to author
Forward
0 new messages