ThePrimeagen / ts-rust-zig-deez

618 stars 163 forks source link

Hosted on Linode? #94

Closed eratio08 closed 1 year ago

eratio08 commented 1 year ago

Will the interpreters run on Linode? We could provide a terraform setup to make it IoC and easy.

ThePrimeagen commented 1 year ago

so a big thing for me is i am not a dev ops guy

so whatever i can accomplish the following the easiest with

  1. on linode because i have some free credits left
  2. i can spawn testing clients (likely node because i want to try drizzle)
  3. i can spawn test servers
  4. each test server will get X amount of client nodes

side note, i'll use turso to store requesting data so therefore it will be easy to orchestrate the memory

eratio08 commented 1 year ago

So I would assume a single instance per server and some instance running multiple clients. The provisioning of the instances could be done via terraform and simple linode node. Such a setup has the downside that running the actual server would still require some scripting to prepare the node and get the code into the node.

Another approach could be to use LKE (this is the linode managed K8s). This setup is way more complicated but would make it very simple for you to spin up server and clients. You would just need to write K8s Deployment manifest and other manifest. You would also need to have a container registry to which all images are pushed and then pulled by K8s.

The simple instance setup could be helped using ansible but I guess we would need some ansible expert to prepp that.