Hello BTC,

this does not sound too bad and might be a intermidate solution to solve at 
least part of the problem.
However it would require some memory watching and instance starting and 
stoping all the time, I switch my wikis regularly and access at least 20 of 
them every day. Killing and starting new processes might prevent my Pi from 
bogging down but adds complexity and overhead (and Bash scripting which I 
am the worst in ;) ) which would be solved if the Node version would serve 
multiple wikis by itself.

Another things are connection and speed: If my poor "server" has to start a 
new process every time I go to a wiki it adds additional delay. But what I 
think might become a problem is if there is a wiki open in one tab and I 
have pm2 configured to kill all other wikis I can not edit this wiki 
anymore if there is another started in the meantime. But how should TS know 
which wikis are still "up" in the browser? I am quite confident with JS and 
Python but this I would not know how to solve reliably so I shy away from 
just killing processes automatically. If I restart TS I know I have to 
reload my wikis but if my Pi kills them I can only know via the 
XMLHttpRequest error coming up.

Cheers,
Tristan

On Sunday, February 11, 2018 at 5:33:16 AM UTC+1, BurningTreeC wrote:
>
> Hello Tristan,
>
> I'm using pm2 http://pm2.keymetrics.io/ to handle multiple node 
> processes, it gives you some control you may want
>
> you can start a process with pm2 start "processname" and stop it the same 
> way, reload it and more
>
> with a bit of  bash scripting one could manage processes to stop when 
> another starts or simply stop all others when you start one
>
> right now I'm starting and reloading tiddlyserver that way, but TS then 
> starts the whole group of wikies.
>
> maybe inside the TS starting scripts pm2 could be inserted
>
> BTC
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/be6b0e8a-f53a-443b-a2ab-971e81e57d2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to