Skip to content

Instantly share code, notes, and snippets.

@catvec
Last active June 3, 2018 06:54
Show Gist options
  • Select an option

  • Save catvec/6630923fa3e86c9b6aa51b53e9a68397 to your computer and use it in GitHub Desktop.

Select an option

Save catvec/6630923fa3e86c9b6aa51b53e9a68397 to your computer and use it in GitHub Desktop.
Plan for hosted Factorio server

Factorio Server Plan

Plan for hosting a Factorio server for my friends and I.

Table Of Contents

Features

  • Auto pause when no one is connected
  • Auto shutdown after server has been paused for 10 minutes
  • Auto startup if 2 or more users want to play
    • By viewing password protected /play URL

Infrastructure

Server hosed via Kubernetes Factorio Helm chart.

Accessed via Nginx edge server.

Nginx access logs exported into Prometheus.

Prometheus alerts created for:

  • No UDP traffic in 10 minute interval -> Trigger script to save & shutdown server
  • 2 or more visits to password protected /play url -> Start server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment