Update Architecture B diagram and benchmark tooling
This commit is contained in:
1 parent
6ea20b2365
commit
0b9865d51e
4 files changed
+224
-48
No files matched your search
@@ -15,6 +15,8 @@ p.add_argument('--warmup',type=int,default=1800);p.add_argument('--duration',typ
|
||||
p.add_argument('--think-min-ms',type=int,default=500);p.add_argument('--think-mean-ms',type=int,default=1000);p.add_argument('--think-stddev-ms',type=int,default=250)
|
||||
p.add_argument('--session-pause-ms',type=int,default=120000)
|
||||
p.add_argument('--session-stddev-ms',type=int,default=30000);p.add_argument('--seed',type=int,default=42)
|
||||
p.add_argument('--period-from',help='Fixed inclusive UTC start for the review dataset')
|
||||
p.add_argument('--period-to',help='Fixed inclusive UTC end for the review dataset')
|
||||
p.add_argument('--output',required=True);p.add_argument('--jmeter',default=str(Path.home()/'.local/bin/jmeter'))
|
||||
p.add_argument('--allow-shared-read-account',action='store_true')
|
||||
p.add_argument('--capacity-trial',action='store_true',help='Read-only trial: restart a session after an error so the configured duration is retained')
|
||||
@@ -58,6 +60,14 @@ def get(path,token=None,body=None):
|
||||
now=dt.datetime.now(dt.timezone.utc)
|
||||
period_from=(now-dt.timedelta(days=31)).replace(hour=0,minute=0,second=0,microsecond=0).isoformat().replace('+00:00','Z')
|
||||
period_to=(now+dt.timedelta(seconds=a.warmup+a.duration+3600)).isoformat().replace('+00:00','Z')
|
||||
if bool(a.period_from) != bool(a.period_to):p.error('Provide both --period-from and --period-to')
|
||||
if a.period_from:
|
||||
try:
|
||||
fixed_from=dt.datetime.fromisoformat(a.period_from.replace('Z','+00:00'))
|
||||
fixed_to=dt.datetime.fromisoformat(a.period_to.replace('Z','+00:00'))
|
||||
if fixed_from.tzinfo is None or fixed_to.tzinfo is None or fixed_to<fixed_from:raise ValueError()
|
||||
except ValueError:p.error('Fixed period must contain ordered, timezone-aware ISO timestamps')
|
||||
period_from=a.period_from;period_to=a.period_to
|
||||
for row in {r['account_id']:r for r in rows}.values():
|
||||
login=get('/api/authentication/login',body={'accountId':row['account_id'],'password':row['password']});token=login['accessToken']
|
||||
if a.scenario=='professional':
|
||||
|
||||
Reference in new issue
Block a user