Skip to content

Instantly share code, notes, and snippets.

View ethanbayliss's full-sized avatar

Ethan Bayliss ethanbayliss

  • Perth, Western Australia
  • 18:42 (UTC +08:00)
View GitHub Profile
@ethanbayliss
ethanbayliss / gist:0e240ac80609aed49cbf2932fef29fc0
Created February 21, 2024 02:58
Calculating AKS kube-reserved memory limits for AKS pre-1.29
25% of the first 4GB of memory
20% of the next 4GB of memory (up to 8GB)
10% of the next 8GB of memory (up to 16GB)
6% of the next 112GB of memory (up to 128GB)
2% of any memory above 128GB
# Google sheets formula
=if(AND(J3>0,J3<=4),0.25*J3,if(J3>=4,4*0.25)+
if(AND(J3>4,J3<=8),0.2*(J3-4),if(J3>=8,4*0.2)))+
if(AND(J3>8,J3<=16),0.1*(J3-8),if(J3>=16,8*0.1))+
[Unit]
Description=Minecraft Server
After=syslog.target network.target
[Service]
# Ensure to set the correct user and working directory (installation directory of your server) here
User=minecraft
WorkingDirectory=/opt/minecraft
# You can customize the maximum amount of memory as well as the JVM flags here