from __future__ import annotations PROFILE_NAME = 'tikv-slow' DEFAULT_SOURCE = 'jira,pingkai' DEFAULT_TIME_RANGE = '30d' DEFAULT_ASSIGNEE = '江红梅' DEFAULT_SAMPLE_SIZE = 5 DEFAULT_STATUS = 'all' DEFAULT_PAGE_SIZE = 100 DEFAULT_CLINIC_ONLY = True DEFAULT_IGNORE_GRAFANA_ONLY = True FOCUS_KEYWORDS = ( 'slow', 'latency', 'duration', 'timeout', '慢', '变慢', '延迟', '时延', '升高', '长尾', '抖动', 'p99', 'p999', 'kv duration', 'grpc duration', 'cop slow', 'cop', 'coprocessor', '慢查询', 'batchget', 'prewrite', 'commit', 'apply wait', 'leader drop', 'read pool', 'running task', 'unified read pool', 'serverisbusy', 'server is busy', ) NEGATIVE_KEYWORDS = ( 'memory leak', 'memory growth', 'memory release', 'oom', 'unsafe recover', 'data recovery', 'recovery', 'crash', '内存泄漏', '内存增长', '内存释放', 'oom', '恢复', '崩溃', ) REPLAY_ENTRY_MODES = ( 'not_tikv_slow_diagnosis', 'generic_tikv_slow', 'leader_drop', 'io_jitter', 'network_issues', 'flow_control', 'snapshot_backlog', ) ALLOWED_REFERENCE_FILES = ( 'references/cross-cutting.md', 'references/read-path.md', 'references/write-path.md', 'references/leader-drop.md', 'references/io-jitter.md', 'references/network-issues.md', 'references/flow-control.md', 'references/snapshot-backlog.md', ) MERGE_READINESS_VALUES = ( 'eligible_now', 'review_only', 'do_not_change_yet', ) MATCH_LEVEL_VALUES = ( 'matched', 'partially_matched', 'mismatched', 'human_conclusion_unclear', ) FINAL_HUMAN_CONCLUSION_STATUS_VALUES = ( 'clear', 'human_conclusion_unclear', ) MISMATCH_TYPES = ( 'wrong_routing', 'wrong_scope', 'wrong_path', 'stopped_too_early', 'overclaimed_root_cause', 'missing_known_issue', 'missing_required_evidence', ) SKILL_CONCLUSION_FIELDS = ( 'entry_mode', 'activated_subcapabilities', 'reference_files_consulted', 'is_tikv_side', 'scope', 'path', 'earliest_proven_bottleneck', 'key_evidence', 'missing_evidence', 'uncertainty_statement', 'provisional_conclusion', )