All,
  Can we add a new state to bind the port after the startup is completed.

Right now start will start the app after binding to the port. We can delay
the binf after connector is started using bindOnInit. But this is a little
different.

StartOnly - Starts The Server and the apps.
Bind - Then Binds it to the Port and the server starts listening
Unbind - Unbinds the port, but keep the server running not listening
Stop- Will Stop(and unbind if bound) the server.

The usecase for this is instant rollback (which can also be achieved with
parallel deployment, but within the same process), Two servers will be
running but one will be bound, and if there is a need to rollback to the
old version, we can unbind this and bind the other.

This will also help make the best use of the PORT_REUSE of the latest 3.9.0
linux kernel feature.

Does that make any sense?


Thanks
Suresh

Reply via email to