Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClientDelay seems to be incorrectly processed #16

Closed
bergerch opened this issue Aug 30, 2022 · 2 comments
Closed

ClientDelay seems to be incorrectly processed #16

bergerch opened this issue Aug 30, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@bergerch
Copy link
Contributor

bergerch commented Aug 30, 2022

In orchestrator.js a template should be created where the start_time of client processes is set to clientDelay as described in the experimental description file.

shadowTemplate = await createShadowHostConfig(
      shadowTemplate,
      hosts,
      e[experimentId].misc.clientDelay
);

but then createShadowHostConfigseems to ignore the passed clientDelay param:

async function createShadowHostConfig(
  shadowTemplate,
  replicas,
  clientDelay
) {
  for (let i = 0; i < replicas.length; i++) {
    shadowTemplate = yg.makeHost(
      shadowTemplate,
      replicas[i].name,
      replicas[i].ip,
      i,
      replicas[i].procs
    );
  }
  return shadowTemplate;
}

the resulting conf file always has a start_time: 0 even if clientDelay is specified. This seems to bug experiments with BFT-SMaRt if clients send requests before replicas are ready.

Edit: Not sure if this bug was fixed in the meantime, I am a little behind the most recent main branch. (Feel free to close if it is fixed now)

@bergerch bergerch added the bug Something isn't working label Aug 30, 2022
@bergerch bergerch pinned this issue Aug 30, 2022
@bentoumia
Copy link
Contributor

bentoumia commented Aug 31, 2022

@bergerch good catch :D this was fixed, use exp.client.startTime (optional; default: 0) instead see:

@bentoumia
Copy link
Contributor

Closing as its fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants