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

tikv docker start unfound listening port 20160 #180

Closed
Beatrice7 opened this issue Jul 3, 2017 · 1 comment
Closed

tikv docker start unfound listening port 20160 #180

Beatrice7 opened this issue Jul 3, 2017 · 1 comment

Comments

@Beatrice7
Copy link

docker run -d --name pd1
-p 192.168.100.179:2379:2379
-p 192.168.100.179:2380:2380
-v /etc/localtime:/etc/localtime:ro
-v /data:/data
pingcap/pd:latest
--name="pd1"
--data-dir="/data/pd1"
--client-urls="http://0.0.0.0:2379"
--advertise-client-urls="http://192.168.100.179:2379"
--peer-urls="http://0.0.0.0:2380"
--advertise-peer-urls="http://192.168.100.179:2380"
--initial-cluster="pd1=http://192.168.100.179:2380"

and

docker run -d --name tikv1
-p 192.168.100.178:20160:20160
-v /etc/localtime:/etc/localtime:ro
-v /data:/data
pingcap/tikv:latest
--addr="192.168.100.178:20160"
--advertise-addr="192.168.100.178:20160"
--data-dir="/data/tikv1"
--pd="192.168.100.179:2379"
--log-file=tikv.log

less tikv.log
2017/07/03 18:01:32.768 tikv-server.rs:276: [WARN] Limit("kernel parameters net.core.somaxconn got 128, expect 32768")
2017/07/03 18:01:32.768 tikv-server.rs:276: [WARN] Limit("check_kernel_params failed No such file or directory (os error 2)")
2017/07/03 18:01:32.768 tikv-server.rs:276: [WARN] Limit("kernel parameters vm.swappiness got 60, expect 0")

but unfound20160 port

tidb also unfound 4000 port

and why?
(--sysctl net.core.somaxconn=32768 )

@Beatrice7 Beatrice7 changed the title tikv docker start unfound linstening port 20160 tikv docker start unfound listening port 20160 Jul 3, 2017
@buggithubs
Copy link
Contributor

docker 启动时,需要将 --addr= 参数设置为 0.0.0.0 ;阅读 docker-deployment.md

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