agones icon indicating copy to clipboard operation
agones copied to clipboard

Why the gameserver fleet is getting shutdown by itself

Open SomendraDev opened this issue 2 years ago • 3 comments

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

SomendraDev avatar Jun 07 '23 04:06 SomendraDev

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

markmandel avatar Jun 07 '23 15:06 markmandel

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

Would it be the same problem?

aimuz avatar Jul 14 '23 02:07 aimuz

'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] avatar Jun 01 '24 10:06 github-actions[bot]

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

github-actions[bot] avatar Jul 15 '24 02:07 github-actions[bot]