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

Update helm chart README.md #2618

Merged
merged 1 commit into from
May 7, 2024
Merged

Update helm chart README.md #2618

merged 1 commit into from
May 7, 2024

Conversation

LeoQuote
Copy link
Collaborator

@LeoQuote LeoQuote commented May 7, 2024

Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.96%. Comparing base (87686dc) to head (12ed80a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2618   +/-   ##
=======================================
  Coverage   76.96%   76.96%           
=======================================
  Files         117      117           
  Lines       16139    16139           
=======================================
  Hits        12421    12421           
  Misses       3718     3718           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@firehalt
Copy link

firehalt commented May 7, 2024

我现在重新使用wiki里面的k8s文档部署的一次
1.执行命令如下:helm install archery douban/archery -f archery-values.yaml -n archery

2.archery-values.yaml文件如下
image:
repository: hhyo/archery
tag: v1.9.1
ingress:
enabled: true
className: "nginx"
paths:
- /
servicePort: 9123
hosts:
- archery.xxxx.com # 你的ingress 域名
redis:
embedded: false
url: "redis://xxxx.redis.rds.aliyuncs.com:6379/0?PASSWORD=MvUk7fCY2EF"
mysql:
embedded: false
url: "mysql://xxx:[email protected]:3306/archery"
configMap:
enabled: true
superuser:
username: admin
password: xxxx # 请尽快修改
email: "[email protected]"
data:
local_settings.py: |-
# -
- coding: UTF-8 -*-
# override your configs here
soar.yaml: |-
# 是否允许测试环境与线上环境配置相同
allow-online-as-test: false
# 是否清理测试时产生的临时文件
drop-test-temporary: true
# 语法检查小工具
only-syntax-check: false
sampling-data-factor: 100
sampling: false
sampling-statistic-target: 100
profiling: false
trace: false
# 日志级别,[0:Emergency, 1:Alert, 2:Critical, 3:Error, 4:Warning, 5:Notice, 6:Informational, 7:Debug]
log-level: 3
log-output: /opt/archery/logs/soar.log
# 优化建议输出格式
report-type: markdown
ignore-rules:
- ""
# 启发式算法相关配置
max-join-table-count: 5
max-group-by-cols-count: 5
max-distinct-count: 5
max-index-cols-count: 5
max-total-rows: 9999999
spaghetti-query-length: 2048
allow-drop-index: false
# EXPLAIN相关配置
explain-sql-report-type: pretty
explain-type: extended
explain-format: traditional
explain-warn-select-type:
- ""
explain-warn-access-type:
- ALL
explain-max-keys: 3
explain-min-keys: 0
explain-max-rows: 10000
explain-warn-extra:
- ""
explain-max-filtered: 100
explain-warn-scalability:
- O(n)
query: ""
list-heuristic-rules: false
list-test-sqls: false
verbose: true
analysis_slow_query.sh: |-
#!/bin/bash
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd $DIR
#配置archery数据库的连接地址
monitor_db_host="xxxx.mysql.rds.aliyuncs.com"
monitor_db_port=3306
monitor_db_user="xxxx"
monitor_db_password="xxxx"
monitor_db_database="archery"
#实例慢日志位置
slowquery_file="/home/mysql/log_slow.log"
pt_query_digest="/usr/bin/pt-query-digest"
#实例连接信息
hostname="mysql_host:mysql_port" # 和archery实例配置内容保持一致,用于archery做筛选
#获取上次分析时间,初始化时请删除last_analysis_time_$hostname文件,可分析全部日志数据
if [ -s last_analysis_time_$hostname ]; then
last_analysis_time=cat last_analysis_time_$hostname
else
last_analysis_time='1000-01-01 00:00:00'
fi
#收集日志
#RDS需要增加--no-version-check选项
$pt_query_digest
--user=$monitor_db_user --password=$monitor_db_password --port=$monitor_db_port
--review h=$monitor_db_host,D=$monitor_db_database,t=mysql_slow_query_review
--history h=$monitor_db_host,D=$monitor_db_database,t=mysql_slow_query_review_history
--no-report --limit=100% --charset=utf8
--since "$last_analysis_time"
--filter="$event->{Bytes} = length($event->{arg}) and $event->{hostname}="$hostname" and $event->{client}=$event->{ip} "
$slowquery_file > /tmp/analysis_slow_query.log
echo date +"%Y-%m-%d %H:%M:%S">last_analysis_time_$hostname

3.现在sql上线就会出现下面的错误
错误333

@LeoQuote
Copy link
Collaborator Author

LeoQuote commented May 7, 2024

你好, 和本 pr 不相关哈, 我建议你把错误贴回之前的 issue 内, 我到时会在里面回复

@LeoQuote LeoQuote merged commit f253d0a into master May 7, 2024
11 checks passed
@LeoQuote LeoQuote deleted the LeoQuote-patch-1 branch May 7, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants