lab6: память Tempo/Loki 1G, повтор запросов к Grafana при 502/503, состояние контейнеров (OOM) в доказательствах
This commit is contained in:
@@ -114,7 +114,7 @@ def scenario_signals(c):
|
||||
spans, _ = o.tempo_trace(tid)
|
||||
server = [s for s in spans if s['kind'] in ('SPAN_KIND_SERVER', 2, '2') or s['name'].startswith('POST /api')]
|
||||
check(server, 'no server span')
|
||||
logs = o.wait_until(lambda: o.loki('{service_name="messenger-api"} | trace_id="%s"' % tid, t0), 60)
|
||||
logs = o.wait_until(lambda: o.loki('{service_name="messenger-api"} | trace_id="%s"' % tid, t0), 120)
|
||||
check(logs, 'no API log with trace_id ' + tid)
|
||||
log_line = logs[0][1]
|
||||
res['request'] = {'request_id': rid_msg, 'trace_id': tid, 'spans': tree(spans)[:12],
|
||||
@@ -141,7 +141,7 @@ def scenario_signals(c):
|
||||
db_in_worker = sorted({s['name'] for s in spans2 if s['service'] == 'messenger-worker' and s['name'] not in
|
||||
('attachment.process process', 'image.decode', 'image.variants') and not s['name'].startswith('S3')})
|
||||
check(all(links.values()), 'broken causal chain: %s' % links)
|
||||
wlogs = o.wait_until(lambda: o.loki('{service_name="messenger-worker"} | trace_id="%s"' % tid2, t0), 60)
|
||||
wlogs = o.wait_until(lambda: o.loki('{service_name="messenger-worker"} | trace_id="%s"' % tid2, t0), 120)
|
||||
check(wlogs, 'no worker log with the upload trace_id')
|
||||
res['upload'] = {'request_id': rid_up, 'trace_id': tid2, 'services': services, 'links': links,
|
||||
'span_count': len(spans2), 'worker_db_spans': db_in_worker[:10], 'tree': tree(spans2)[:40],
|
||||
|
||||
Reference in New Issue
Block a user