Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-127

Expose improved API for lifecycle management

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-alpha6
    • 4.0-beta1
    • HttpCore NIO
    • None

    Description

      Apache Synapse uses HttpCore and we would like to stop accepting new connections to put our servers into a "maintenance" mode. In this mode any in-flight requests already being served will continue as normal (i.e. reading, writing etc) but new connections should be rejected, so that a load balancer could direct new connections to another instance in the cluster. The requirement is to then update configuration, apply patches or cleanly shutdown etc. for maintenance without effecting any in-flight requests.

      Implementation wise I think this would be fairly straightforward as we can remove OP_ACCEPT from the interested ops.

      On the mailing list Odi suggested that we tackle this at a broader level by exposing lifecycle management APIs
      "I suggest create, start, stop, destroy methods in some classes/APIs (semantics of JBoss Service MBeans)"

      Attachments

        1. httpcore-127.patch
          6 kB
          Asankha Chamath Perera

        Activity

          People

            Unassigned Unassigned
            asankha Asankha Chamath Perera
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: