From 173c6a6f29dda67d83c99b5fb411a64bf649f61d Mon Sep 17 00:00:00 2001 From: wentaojin <34805682+WentaoJin@users.noreply.github.com> Date: Thu, 18 Jun 2020 13:48:00 +0800 Subject: [PATCH 1/4] add tiup ssh handshake failed faq add tiup ssh handshake failed faq --- tiup/tiup-faq.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tiup/tiup-faq.md b/tiup/tiup-faq.md index 7f305fab2abd..08dd1fc6d83f 100644 --- a/tiup/tiup-faq.md +++ b/tiup/tiup-faq.md @@ -38,3 +38,11 @@ TiUP Playground 组件主要定位是快速上手和搭建单机的开发环境 ## 是否可以检测不同集群的端口和目录冲突? 如果不同集群是由同一个 TiUP 中控机部署的,会在部署和扩容时进行检测,如果属于不同的 TiUP 中控机,目前不支持检测。 + +## 集群部署期间,TiUP 收到报错 ssh: handshake failed: read tcp 10.10.10.34:38980 -> 10.10.10.34:3600: read: connection reset by peer +该报错可能是因为 TiUP 默认并发超过 ssh 默认最大连接数导致,可尝试编辑加大默认连接数,然后重启 sshd 服务解决: +``` +vi /etc/ssh/sshd_config +MaxSessions 1000 +MaxStartups 1000 +``` From 84f4873a7938562ac57518dfa7f844e7a44effea Mon Sep 17 00:00:00 2001 From: wentaojin <34805682+WentaoJin@users.noreply.github.com> Date: Fri, 19 Jun 2020 12:09:17 +0800 Subject: [PATCH 2/4] Update tiup/tiup-faq.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- tiup/tiup-faq.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiup/tiup-faq.md b/tiup/tiup-faq.md index 08dd1fc6d83f..0f0c3846005f 100644 --- a/tiup/tiup-faq.md +++ b/tiup/tiup-faq.md @@ -40,7 +40,8 @@ TiUP Playground 组件主要定位是快速上手和搭建单机的开发环境 如果不同集群是由同一个 TiUP 中控机部署的,会在部署和扩容时进行检测,如果属于不同的 TiUP 中控机,目前不支持检测。 ## 集群部署期间,TiUP 收到报错 ssh: handshake failed: read tcp 10.10.10.34:38980 -> 10.10.10.34:3600: read: connection reset by peer -该报错可能是因为 TiUP 默认并发超过 ssh 默认最大连接数导致,可尝试编辑加大默认连接数,然后重启 sshd 服务解决: +该报错可能是因为 TiUP 默认并发超过 ssh 默认最大连接数导致的,可尝试加大默认连接数,然后重启 sshd 服务解决: + ``` vi /etc/ssh/sshd_config MaxSessions 1000 From 26b23e2ca698c2606e622c5379d2a90a9cc35d15 Mon Sep 17 00:00:00 2001 From: wentaojin <34805682+WentaoJin@users.noreply.github.com> Date: Fri, 19 Jun 2020 12:12:09 +0800 Subject: [PATCH 3/4] Update tiup/tiup-faq.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- tiup/tiup-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiup/tiup-faq.md b/tiup/tiup-faq.md index 0f0c3846005f..a51c70249f47 100644 --- a/tiup/tiup-faq.md +++ b/tiup/tiup-faq.md @@ -39,7 +39,7 @@ TiUP Playground 组件主要定位是快速上手和搭建单机的开发环境 如果不同集群是由同一个 TiUP 中控机部署的,会在部署和扩容时进行检测,如果属于不同的 TiUP 中控机,目前不支持检测。 -## 集群部署期间,TiUP 收到报错 ssh: handshake failed: read tcp 10.10.10.34:38980 -> 10.10.10.34:3600: read: connection reset by peer +## 集群部署期间,TiUP 收到报错 `ssh: handshake failed: read tcp 10.10.10.34:38980 -> 10.10.10.34:3600: read: connection reset by peer` 该报错可能是因为 TiUP 默认并发超过 ssh 默认最大连接数导致的,可尝试加大默认连接数,然后重启 sshd 服务解决: ``` From 1ba6972873045ccad028a30875ae53f39349e29e Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Fri, 19 Jun 2020 14:01:41 +0800 Subject: [PATCH 4/4] Update tiup/tiup-faq.md --- tiup/tiup-faq.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tiup/tiup-faq.md b/tiup/tiup-faq.md index a51c70249f47..caa8083b898d 100644 --- a/tiup/tiup-faq.md +++ b/tiup/tiup-faq.md @@ -40,6 +40,7 @@ TiUP Playground 组件主要定位是快速上手和搭建单机的开发环境 如果不同集群是由同一个 TiUP 中控机部署的,会在部署和扩容时进行检测,如果属于不同的 TiUP 中控机,目前不支持检测。 ## 集群部署期间,TiUP 收到报错 `ssh: handshake failed: read tcp 10.10.10.34:38980 -> 10.10.10.34:3600: read: connection reset by peer` + 该报错可能是因为 TiUP 默认并发超过 ssh 默认最大连接数导致的,可尝试加大默认连接数,然后重启 sshd 服务解决: ```