Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laggy Server when Deployed to Kubernetes Cluster #416

Open
lukasyelle opened this issue Sep 13, 2021 · 2 comments
Open

Laggy Server when Deployed to Kubernetes Cluster #416

lukasyelle opened this issue Sep 13, 2021 · 2 comments
Labels

Comments

@lukasyelle
Copy link

I know I've made the deployment of my own Factorio server more complicated by deploying it via a HA Kubernetes Cluster (utilizing SQLJames's Factorio Helm Chart) but nevertheless I was able to spin up the container and access the server both from within my network and externally after port-forwarding the game port and setting up an ingress into the cluster.

I've noticed that, although sometimes the game is quite playable from within my network (getting 60UPS and 60FPS consistently), every now and then (even internally) I get huge latency spikes and I get booted from the server. As soon as I leave the house the latency issue is exasperated greatly and I am able to play (if I'm lucky) for just minutes before again getting booted. I'd like to keep the server running in the cluster if possible, so if anyone has had similar issues and figured out a solution, any tips / tricks would be greatly appreciated.

As an aside I've also spun up a Minecraft server on the same cluster with itzg's helm chart. This server consistently gets ~20ms ping and no latency issues from outside of the network, so my connection does not seem to be the issue.

@bplein
Copy link

bplein commented Sep 23, 2021

What CNI are you using? Any details about your configuration would be helpful. Also, are you using an nginx ingress per that SQLJames link?

@SQLJames
Copy link

@lukasyelle I am not sure if you were able to solve this, but what were your resource utilizations? Also were you using any mods? Ive run into a few issues with mods on the deployment when I wasn't giving the pod enough resources to start.

try increasing the requests in the value.yaml file

## Compute Resources required by the operator container
resources:
  ## We have to ensure that factorio have enough computing resources avaiable. We set here an absolute minimum
  ## Keep in mind that big factorio base can consume a lot of memory and cpu
  requests:
    memory: 512Mi
    cpu: 500m
    ```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants