Code Monkey home page Code Monkey logo

Comments (6)

pboucher avatar pboucher commented on August 17, 2024

I'll lower the priority on this one as you could run multiple instances of the daemon to provide service to multiple shotgun instances.

This would have the added benefit of taking down one daemon without compromising the other and keeping log files independent.

You could also be running two different versions of the daemon as long as the plugin API hasn't changed.

If this setup is enough, maybe we could even close this ticket?

Explanation

  • Put daemon code files in two directories (/apps/daemonA and /apps/daemonB for example) and modify the two conf files to point to two different Shotgun servers, plugin locations, log locations, id files, etc...
  • Symlink /etc/init.d/daemonA to /apps/daemonA/shotgunEventDaemon.py
  • Symlink /etc/init.d/daemonB to /apps/daemonB/shotgunEventDaemon.py
  • Setup the two independent services with chkconfig
  • Create a single plugin location where you'll put your plugins (/apps/shotgunPlugins)
  • Symlink the appropriate plugins for each daemon instance:
    • /apps/daemonA/plugins/exampleA.py -> /apps/shotgunPlugins/exampleA.py
    • /apps/daemonA/plugins/exampleB.py -> /apps/shotgunPlugins/exampleB.py
    • /apps/daemonB/plugins/exampleB.py -> /apps/shotgunPlugins/exampleB.py
    • /apps/daemonB/plugins/exampleC.py -> /apps/shotgunPlugins/exampleC.py

from shotgunevents.

pboucher avatar pboucher commented on August 17, 2024

Possible caveat: Would the auto reload functionality still work if plugins are loaded via symlink? This would have to be tested.

from shotgunevents.

kporangehat avatar kporangehat commented on August 17, 2024

That's true. If the symlinks work for the auto reload, that would probably be sufficient, but my hunch says they probably won't. If they don't, then it requires duplicate plugins running on two different daemons and that's not ideal obviously.

Not super high priority, but would be good to have supported in some fashion eventually

from shotgunevents.

pboucher avatar pboucher commented on August 17, 2024

If the reload/symlink test fails. Maybe we can just run the paths through os.path.realpath() and run reload tests on the result.

from shotgunevents.

pboucher avatar pboucher commented on August 17, 2024

If a plugin is a symlink to a file, auto reload still works. Just tested it.

from shotgunevents.

pboucher avatar pboucher commented on August 17, 2024

This solution should be added to documentation. And then issue closed.

from shotgunevents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.