fix(loadtest): apply direct dial IP assignment
This commit is contained in:
@@ -122,9 +122,7 @@ func runAgent(ctx context.Context, cfg *Config, manifest *Manifest, machine, coo
|
|||||||
if len(accounts) != cfg.UsersPerMachine {
|
if len(accounts) != cfg.UsersPerMachine {
|
||||||
return fmt.Errorf("machine %s accounts=%d expected=%d", machine, len(accounts), cfg.UsersPerMachine)
|
return fmt.Errorf("machine %s accounts=%d expected=%d", machine, len(accounts), cfg.UsersPerMachine)
|
||||||
}
|
}
|
||||||
for i := range accounts {
|
assignAgentEndpoints(cfg, machine, accounts)
|
||||||
accounts[i].Endpoint = cfg.Endpoints[machine][(accounts[i].Index-1)%len(cfg.Endpoints[machine])]
|
|
||||||
}
|
|
||||||
if !cfg.SkipP2PPreflight {
|
if !cfg.SkipP2PPreflight {
|
||||||
if err = preflightP2P(ctx, cfg, manifest, accounts, apiKey); err != nil {
|
if err = preflightP2P(ctx, cfg, manifest, accounts, apiKey); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user