Skip to content

Graceful Restarts? #296

Closed
Closed
@ghost

Description

How about integrating zero downtime restarts in gin server? Maybe using endless?

https://github.com/fvbock/endless

Activity

manucorporat

manucorporat commented on May 21, 2015

@manucorporat
Contributor

Adding a library like that may opens a new world of issues. I am not considering a built-in support for this right now. Even though, I am interested in zero downtime restarts.

If you want to start using endless right now, just do this:

router := gin.Default()
router.GET("/", handler)
// [...]
endless.ListenAndServe(":4242", router)
elliotlings

elliotlings commented on May 27, 2015

@elliotlings

I don't think it should be included in the library, it may be confusing for people just getting started with the library and may become an issue during development. I'm currently doing what @manucorporat suggested.

shotcat

shotcat commented on Feb 21, 2016

@shotcat

good tools is quick my develop speek!

jacktuck

jacktuck commented on Mar 13, 2016

@jacktuck

Manners by the folks at BrainTree seems like an alternative to endless 😃

appleboy

appleboy commented on Mar 14, 2016

@appleboy
Member

@jacktuck Thanks. I already create new PR #561 to update README.

walleliu1016

walleliu1016 commented on Aug 4, 2022

@walleliu1016

Adding a library like that may opens a new world of issues. I am not considering a built-in support for this right now. Even though, I am interested in zero downtime restarts.

If you want to start using endless right now, just do this:

router := gin.Default()
router.GET("/", handler)
// [...]
endless.ListenAndServe(":4242", router)

endless not supported under windows platform.

BlaiseAntony

BlaiseAntony commented on Mar 25, 2024

@BlaiseAntony

Why not add this functionality in gin lib itself? Do we have any blocker for it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @appleboy@manucorporat@elliotlings@jacktuck@walleliu1016

        Issue actions

          Graceful Restarts? · Issue #296 · gin-gonic/gin