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

docker启动报错 #7

Closed
ciweigg2 opened this issue Nov 5, 2018 · 8 comments
Closed

docker启动报错 #7

ciweigg2 opened this issue Nov 5, 2018 · 8 comments

Comments

@ciweigg2
Copy link

ciweigg2 commented Nov 5, 2018

docker-compose.yml是不是需要修改些什么 才能启动的

@hhyo
Copy link
Owner

hhyo commented Nov 6, 2018

@ciweigg2 mysql、inception、archery的配置文件配置都需要自己修改后提前准备好,启动后可以查看是不是所有容器都是运行状态,通过docker logs 容器名可以查看容器日志

@ciweigg2
Copy link
Author

ciweigg2 commented Nov 6, 2018

我现在稍微改了点东西,能启动了,但是soar的分析为什么没有explain分析报告呢,需要配置什么么?只有优化建议

@hhyo
Copy link
Owner

hhyo commented Nov 6, 2018

SOAR_TEST_DSN配置无法访问就会无法查看explain报告,这块到时候再增加个soar.yaml,输出日志就看的很清楚了

@ciweigg2
Copy link
Author

ciweigg2 commented Nov 6, 2018

我配置的和你测试环境基本一样 只是我没用别名 你是mysql:3306 我是ip:3306 这个有差别吗

@hhyo
Copy link
Owner

hhyo commented Nov 6, 2018

ip不能是127.0.0.1(容器本身),账号需要all privileges
可以进容器补充一个配置文件/etc/soar.yaml,在挂载的downloads/log目录就可以查看运行日志了

# 是否允许测试环境与线上环境配置相同
allow-online-as-test: false
# 是否清理测试时产生的临时文件
drop-test-temporary: true
# 语法检查小工具
only-syntax-check: false
sampling-data-factor: 100
sampling: true
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: 7
log-output: /opt/archery/downloads/log/soar.log
# 优化建议输出格式
report-type: html
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

@ciweigg2
Copy link
Author

ciweigg2 commented Nov 6, 2018

我试试吧,大神方便留个联系方式么,我遇到的问题还挺多的,需要帮助呀

@hhyo
Copy link
Owner

hhyo commented Nov 6, 2018

个人精力和时间有限,详细阅读使用文档和Q&A应该可以处理掉大部分的问题,如果仍有解决不了的,可以开issue沟通,会不定期回复。

@ciweigg2
Copy link
Author

ciweigg2 commented Nov 6, 2018

行有问题我提ISSUES

@hhyo hhyo closed this as completed Nov 9, 2018
feiazifeiazi pushed a commit to feiazifeiazi/Archery_Genuine2 that referenced this issue Dec 20, 2024
# This is the 1st commit message:

Initial commit
# This is the commit message hhyo#2:

django framework.

# This is the commit message hhyo#3:

django.

# This is the commit message hhyo#4:

django 1

# This is the commit message hhyo#5:

base.html

# This is the commit message hhyo#6:

user login, main menu.

# This is the commit message hhyo#7:

django admin, middleware.

# This is the commit message hhyo#8:

submitsql

# This is the commit message hhyo#9:

delete sth.

# This is the commit message hhyo#10:

自动审核,人工审核,回滚功能

# This is the commit message hhyo#11:

所有历史工单展示

# This is the commit message hhyo#12:

pymysql.

# This is the commit message hhyo#13:

static_root

# This is the commit message hhyo#14:

fix bug.

# This is the commit message hhyo#15:

fix bug

# This is the commit message hhyo#16:

readme updated.

# This is the commit message hhyo#17:

readme updated
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

No branches or pull requests

2 participants