dwbrite / website-rs

what if I purpose-built a webserver in rust just for dwbrite.com?
4 stars 0 forks source link

Add reload/restart functionality #7

Closed dwbrite closed 7 months ago

dwbrite commented 3 years ago

Issue:

A number of features don't update until the server is stopped and restarted, reducing uptime. Specifically

dwbrite commented 3 years ago

I'm not certain exactly how to do this, but Unix IPC might be a good place to start? :thinking:

dwbrite commented 3 years ago

/proc/[pid]/fd/0 is stdin for a program.

you can create a .pid file in /var/run/ if you want to find a certain program's pid. Probable use-case would be blue-website-rs.pid and green-website-rs.pid

I might want to create a "brite-site-orchestrator" to handle this type of thing, especially if I handle deployment here too.

dwbrite commented 1 year ago

This might be a non-issue if we get green-blue deployment working w/ k8s.

dwbrite commented 7 months ago

solved: green-blue orchestration w/ k8s and istio virtual-server

https://github.com/dwbrite/firenet/commit/f19f3ab22dcb1e77726044c2998d1a7fcdc8c9fc