Drain mode VS MAINT mode

Dear community,

by reading some documentation about the dataplane API I got confused with regards to put out of production gracefully a backend server.

Seems there is two ways to do it :

  • disable server, will result in MAINT mode
  • set server either DRAIN or MAINT mode

That being said, I understood that using directly MAINT mode or disable server will result in dropping tcp connections currently active, am I right ?

So the cleanest way to put a backend out of production is to :

  • set Drain mode,
  • Verify connection is 0
  • set the node to Maint

Thank you !