googleforgames / agones

Dedicated Game Server Hosting and Scaling for Multiplayer Games on Kubernetes
https://agones.dev
Apache License 2.0
6.04k stars 801 forks source link

Why the gameserver fleet is getting shutdown by itself #3204

Closed SomendraDev closed 2 months ago

SomendraDev commented 1 year ago

Fleet file :

apiVersion: "agones.dev/v1"
kind: Fleet
metadata:
  name: andarbahar-fleet
  namespace: pfcpro
  labels:
    app: andarbahar-fleet
spec:
  replicas: 1
  scheduling: Packed
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
  template:
    metadata:
      labels:
        app: andarbahar-gameserver
        agonesdevfleet: andarbahar-fleet
    spec:
      ports:
        - name: default
          portPolicy: Dynamic
          containerPort: 443
          protocol: TCP
      health:
        initialDelaySeconds: 60
        periodSeconds: 60
      sdkServer:
        logLevel: Info
        grpcPort: 9357
        httpPort: 9358
      template:
        spec:
          containers:
            - name: andarbahar-gameserver
              image: sonu121/andarbahargameserver:2
              imagePullPolicy: Always
              resources:
                requests:
                  cpu: 100m
                  memory: 200Mi
                limits:
                  cpu: 300m
                  memory: 300Mi
              envFrom:
                - configMapRef:
                    name: pfcpro-games-config-map
              env:
                - name: AZURE_TABLE_GRAIN_STORAGE_TABLE_NAME
                  value: "andarbaharGamesTable3" # in minutes
                - name: AZURE_TABLE_GRAIN_REMINDER_TABLE_NAME
                  value: "andarbaharReminderTable3" # in minutes
                - name: DELAY_DEACTIVATION_OF_GRAIN
                  value: "60" # in minutes
                - name: AMOUNT_TO_BE_COLLECTED
                  value: "10"
          restartPolicy: Always

FleetAutoscaler file :


apiVersion: "autoscaling.agones.dev/v1"
kind: FleetAutoscaler
metadata:
  name: fleet-autoscaler-andarbahar
  namespace: pfcpro
spec:
  fleetName: store-andarbahar-fleet
  policy:
    type: Buffer
    buffer:
      bufferSize: 1
      maxReplicas: 1
  sync:
    type: FixedInterval
    fixedInterval:
      seconds: 30

Messaged got when auto shutdown :

image

markmandel commented 1 year ago

Can you share the event log for the GameServer that got shutdown?

aimuz commented 1 year ago

https://github.com/googleforgames/agones/issues/3143

Would it be the same problem?

github-actions[bot] commented 4 months ago

'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions '

github-actions[bot] commented 2 months ago

This issue is marked as obsolete due to inactivity for last 60 days. To avoid issue getting closed in next 30 days, please add a comment or add 'awaiting-maintainer' label. Thank you for your contributions