Skip to content

Question : Controllers standby test  #5416

Open
@p-jonghyun

Description

@p-jonghyun

behavior of "Controllers hot standby"
it should "use controller1 if controller0 goes down" in withAssetCleaner(wskprops) { (wp, assetHelper) =>
if (amountOfControllers >= 2) {

'use controller1 if controller0 goes down' test in ShootComponentsTests.scala does following procedures.

  1. restart controller0 container
  2. /ping controller0 until it’s down
  3. /ping controller1 to check it’s still up
  4. ( Invoke Action(POST) + Get Action(GET) ) * 96 to nginx

Isn't there a case when nginx will forward the first POST request to controller0 that is not ready to take requests? ( in state container up, but the backend in the container not)

Such behaivor will result in connection reset by peer which is not in Swagger Spec, failing the test.

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