Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Central Db and run app next to each plex instance #19

Open
seertenedos opened this issue Jan 13, 2020 · 5 comments
Open

Central Db and run app next to each plex instance #19

seertenedos opened this issue Jan 13, 2020 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@seertenedos
Copy link

Any chance of updating to use something like MariaDB and then instead of having one copy of the app you have one copy next to each plex instance so that it can read and write the DB without the restart or connection between the server? I would love to put this all in docker containers but my docker-compose files run as services that auto restart if any container stops so does not work with the current version that stops plex. Also i prefer a central data store because then other things could mark things as watched if it say monitoried netflix or emby or any other player or source out there.

@Fmstrat
Copy link
Owner

Fmstrat commented Jan 13, 2020

Oh how I wish Plex was built on a database in the first place. I'm actually looking to contribute to Jellyfin on exactly this.

In any event, I'm not sure what the advantage to this structure would be. We would still need a connection between the servers, and we would still need to update Plex's Sqlite DB, and due to Plex's unique caching of the SB a stop/start is still required.

As for compose, if you use docker-compose stop it will override the restart flag. Or you could set restart to unless-stopped.

Lastly, there are plugins out there that will sync to third party services now. Unfortunately I don't have the time to recreate that functionality, but would welcome contributions.

If I was going to do a revamp of anything, it would be to use the Plex web API to set status like plex-sync but build an interface to auto grab tokens.

@Fmstrat Fmstrat added the help wanted Extra attention is needed label Jan 13, 2020
@seertenedos
Copy link
Author

seertenedos commented Jan 13, 2020 via email

@Fmstrat
Copy link
Owner

Fmstrat commented Jan 13, 2020

Unfortunately no, there isn't. And there is no way to get tokens for all users from the DB. Plex is kind of a nightmare for this. It's part of the reason I want Jellyfin to get to a mature state.

@ChrisPates
Copy link

You do know that SQLite do has built in eventual consistency replication out of the box?

Has anyone looked at modifying the SQLite Parameters in plexmedia?

@yusufali94
Copy link

check out this repo: https://github.com/drgroot/plexcontroller
Its my project that I built to solve this problem. I am in the process of writing a README so its useable by the general public
concept of the idea can be found here: https://www.reddit.com/r/PleX/comments/o46emw/plex_build_log_part1_network_loadbalancing/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants