Skip to content

Shutdown takes too long #349

@Lusitaniae

Description

@Lusitaniae

Server doesn't shutdown on it's own and gets forcefully killed by systemd after 5 mins

https://github.com/grpc/grpc-go/blob/master/examples/features/gracefulstop/server/main.go

We can manage it from app side, kill after 30s ?

Oct 18 12:59:12 faithful-staging1 systemd[1]: Stopping faithful-rpc.service - Yellowstone Old Faithful RPC server...
Oct 18 12:59:12 faithful-staging1 faithful-cli[7201]: I1018 12:59:12.282900    7201 main.go:32] received interrupt signal
Oct 18 12:59:12 faithful-staging1 faithful-cli[7201]: ctx done, shutting down bigcache cleanup routine
Oct 18 12:59:12 faithful-staging1 faithful-cli[7201]: I1018 12:59:12.283116    7201 multiepoch.go:249] RPC server shutting down...
Oct 18 12:59:12 faithful-staging1 faithful-cli[7201]: I1018 12:59:12.283655    7201 multiepoch.go:254] RPC server shut down
Oct 18 13:04:12 faithful-staging1 systemd[1]: faithful-rpc.service: State 'stop-sigterm' timed out. Killing.
Oct 18 13:04:12 faithful-staging1 systemd[1]: faithful-rpc.service: Killing process 7201 (faithful-cli) with signal SIGKILL.
Oct 18 13:04:12 faithful-staging1 systemd[1]: faithful-rpc.service: Failed to kill control group /system.slice/faithful-rpc.service, ignoring: Invalid argument
Oct 18 13:04:16 faithful-staging1 systemd[1]: faithful-rpc.service: Main process exited, code=killed, status=9/KILL
Oct 18 13:04:16 faithful-staging1 systemd[1]: faithful-rpc.service: Failed with result 'timeout'.
Oct 18 13:04:16 faithful-staging1 systemd[1]: Stopped faithful-rpc.service - Yellowstone Old Faithful RPC server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions