malnvenshorn / OctoPrint-FilamentManager

OctoPrint plugin to manage your filament inventory
GNU Affero General Public License v3.0
131 stars 59 forks source link

[Question] Multiple OctoPrint instances, single spool #129

Closed stelgenhof closed 5 years ago

stelgenhof commented 5 years ago

Tracking the usage with your plugin works fantastic.

Just was wondering about the situation when you use the same spool but with different printers (i.e. OctoPrint instances).

I know the plugin can be configured to have a remote database. Would it cause any issue when multiple instance of OctoPrint with this plugin access that database? Concurrency is not the issue, just not sure about the filament usage being updated correctly by multiple instances.

Cheers! Sacha

moclub4 commented 5 years ago

Very interesting question, same situation here with me. Two printers, two octoprint instances, sharing spools. How to handle? I would be happy if there are any solutions.

monterman commented 5 years ago

I support this feature also. I noticed that the actual plugin is intalled in a shared directory for my two instances of octoprint, but the inventory is different. Where is the config file for the inventory?

malnvenshorn commented 5 years ago

There is no issue if you use an external database system. When you share the embedded SQLite database with multiple instances problems might arise if the database is already locked by another process.

stelgenhof commented 5 years ago

@malnvenshorn Thanks for the explanation. Makes sense. :)