Open quaff opened 4 years ago
@quaff Would you mind trying the deployment with kind here?
I'm not using k8s, only docker for development.
Please resolve retrying of unary invoker failed
What's the image version are you using?
docker image ls|grep pingcap
pingcap/pd latest 5e850bfca7b5 4 weeks ago 135MB
pingcap/tidb latest 07a17362b8e0 4 weeks ago 126MB
pingcap/tikv latest d02317436da1 4 weeks ago 295MB
pingcap/tispark latest f97259e33f7d 5 months ago 636MB
pingcap/tidb-vision latest e9b25d9f7bdb 2 years ago 47.6MB
Could you please retry with the v4.0.4 version?
v4.0.4
pd0_1 | [2020/08/31 02:06:27.809 +00:00] [WARN] [retry_interceptor.go:61] ["retrying of unary invoker failed"] [target=endpoint://client-3e057590-2163-497c-a1a4-79259b8085ee/pd0:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
tispark-slave0_1 | 20/08/31 02:06:29 INFO TransportClientFactory: Successfully created connection to tispark-master/172.19.0.13:7077 after 7353 ms (0 ms spent in bootstraps)
pd2_1 | {"level":"warn","ts":"2020-08-31T02:06:32.242Z","caller":"clientv3/retry_interceptor.go:61","msg":"retrying of unary invoker failed","target":"endpoint://client-2a1a6e2e-0871-4d68-9a6c-3b3a83427fc9/pd2:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
pd0_1 | [2020/08/31 02:06:38.238 +00:00] [WARN] [retry_interceptor.go:61] ["retrying of unary invoker failed"] [target=endpoint://client-3e057590-2163-497c-a1a4-79259b8085ee/pd0:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
pd0_1 | [2020/08/31 02:06:41.252 +00:00] [WARN] [retry_interceptor.go:61] ["retrying of unary invoker failed"] [target=endpoint://client-3e057590-2163-497c-a1a4-79259b8085ee/pd0:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
pd0_1 | [2020/08/31 02:06:45.501 +00:00] [WARN] [retry_interceptor.go:61] ["retrying of unary invoker failed"] [target=endpoint://client-3e057590-2163-497c-a1a4-79259b8085ee/pd0:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
pd0_1 | [2020/08/31 02:06:48.067 +00:00] [WARN] [retry_interceptor.go:61] ["retrying of unary invoker failed"] [target=endpoint://client-3e057590-2163-497c-a1a4-79259b8085ee/pd0:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
pd0_1 | [2020/08/31 02:06:51.529 +00:00] [WARN] [retry_interceptor.go:61] ["retrying of unary invoker failed"] [target=endpoint://client-3e057590-2163-497c-a1a4-79259b8085ee/pd0:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
pd2_1 | {"level":"warn","ts":"2020-08-31T02:06:52.267Z","caller":"clientv3/retry_interceptor.go:61","msg":"retrying of unary invoker failed","target":"endpoint://client-2a1a6e2e-0871-4d68-9a6c-3b3a83427fc9/pd2:2379","attempt":0,"error":"rpc error: code = NotFound desc = etcdserver: requested lease not found"}
pd1_1 | {"level":"warn","ts":"2020-08-31T02:06:52.133Z","caller":"clientv3/retry_interceptor.go:61","msg":"retrying of unary invoker failed","target":"endpoint://client-447f391b-3fa4-4352-89d5-d7a873657132/pd1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
pd1_1 | {"level":"warn","ts":"2020-08-31T02:06:54.064Z","caller":"clientv3/retry_interceptor.go:61","msg":"retrying of unary invoker failed","target":"endpoint://client-447f391b-3fa4-4352-89d5-d7a873657132/pd1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
pd1_1 | {"level":"warn","ts":"2020-08-31T02:06:55.172Z","caller":"clientv3/retry_interceptor.go:61","msg":"retrying of unary invoker failed","target":"endpoint://client-447f391b-3fa4-4352-89d5-d7a873657132/pd1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
pd0_1 | [2020/08/31 02:06:55.815 +00:00] [WARN] [retry_interceptor.go:61] ["retrying of unary invoker failed"] [target=endpoint://client-3e057590-2163-497c-a1a4-79259b8085ee/pd0:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
pd2_1 | {"level":"warn","ts":"2020-08-31T02:06:56.202Z","caller":"clientv3/retry_interceptor.go:61","msg":"retrying of unary invoker failed","target":"endpoint://client-2a1a6e2e-0871-4d68-9a6c-3b3a83427fc9/pd2:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
pd0_1 | {"level":"warn","ts":"2020-08-31T02:06:53.668Z","caller":"clientv3/retry_interceptor.go:61","msg":"retrying of unary invoker failed","target":"endpoint://client-4a19fd34-67c2-4430-a537-9bcc5dee681f/pd0:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
OK, sorry for the issue. I would suggest trying the kind creation I mentioned before, we have not maintained the installation with docker-compose for a long time, and installation with kind does not require any additional steps except for downloading the kind binary. And I suppose that you're just trying the TiDB instead of deploying a production env, trial with kind should be similar with docker-compose but the procedure is simpler.
Is there an instruction to deploy tidb using kind?
Sure. English version: https://docs.pingcap.com/tidb-in-kubernetes/stable/get-started#create-a-kubernetes-cluster-using-kind Chinese version: https://docs.pingcap.com/zh/tidb-in-kubernetes/stable/get-started#%E4%BD%BF%E7%94%A8-kind-%E5%88%9B%E5%BB%BA-kubernetes-%E9%9B%86%E7%BE%A4
And if any issues or anything unclear with the doc, just create an issue here and you can assign it to me directly. For the TiDB Operator issues, just create the issue in the TiDB Operator repo.
作为普通开发者我只想快速构建一个可用的数据库实例,不纠结是docker-compose还是k8s,本来用docker-compose只需要一个命令就可以搭建一个可用环境,现在换成kind,又是kubectl又是helm,绕晕了,估计很多人中途就放弃了。
建议你们还是继续维护docker-compose方式部署给开发人员使用,k8s这些是给专业运维人员在生产环境使用的。
OK, understand. I will check this issue.
作为普通开发者我只想快速构建一个可用的数据库实例,不纠结是docker-compose还是k8s,本来用docker-compose只需要一个命令就可以搭建一个可用环境,现在换成kind,又是kubectl又是helm,绕晕了,估计很多人中途就放弃了。
@quaff Recommend using tiup playground
in the developing environment, which can startup a TiDB cluster in single command.
@quaff Sorry for the inconvenience, as @lonng said, it's recommended to use tiup which is more easier than docker-compose, and it has full lifecycle management of the cluster. You can use tiup playground
to easily spin up a local testing cluster or use tiup to deploy a production cluster.
In the future, tidb-docker-compose will not be maintained anymore in favor of tiup.
@quaff Sorry for the inconvenience, as @lonng said, it's recommended to use tiup which is more easier than docker-compose, and it has full lifecycle management of the cluster. You can use
tiup playground
to easily spin up a local testing cluster or use tiup to deploy a production cluster.In the future, tidb-docker-compose will not be maintained anymore in favor of tiup.
首先,我不同意tiup比docker-compose更easy的说法,其次,我相信绝大多数开发者更希望使用业界流行的方案而不是某个软件的专用方案,而docker可以说是事实上的标准,我可以在docker里面部署YugabyteDB Citus SQLServer Oracle等等等,作为开发人员, 我没太多精力去折腾怎么部署某个软件,那是运维人员做的事情。 如果一开始就没支持docker-compose,我能理解。 如果现在是因为docker-compose做了不兼容的变动导致这条路走不下去,我也能理解。 但是为了推自己的tiup而放弃docker-compose,我觉得不是一个负责的做法,我建议你们花一点点精力排查一下这个问题,说不定这个问题也会隐藏在其他部署环境只是暂时没发现而已。我能从解决问题中得到快感,只是这不是我擅长的领域,否则我会尝试一下。
@quaff I am very sorry for the inconvenience. The reason why docker-compose is not maintained for the time being is not what you said to promote our new platform tiup
. Because maintaining any product requires more manpower from the community.
With limited manpower, we tend to focus on solving more important issues to provide users with better products. We have the following solutions to help users use TiDB in both the production environment and development environment.
For a production environment:
For a development environment:
tiup playround
人力有限可以理解,麻烦有空还是抽出精力看看这个问题,也许是一个比在这里回复还不费脑的问题。
I meet the same question in the Mac while using the docker-compose. But I thought it may be a system bottleneck problem since it disappeared when I deploy it on my university server.
pingcap/tidb-operator v1.3.0-beta.1 19bf953fa60a 6 days ago 268MB pingcap/tidb-monitor-initializer v5.3.0 7f05e711b50a 7 weeks ago 4.52MB pingcap/tidb latest 778bf9e1e051 9 months ago 145MB pingcap/tikv latest 6e34b1d95950 9 months ago 355MB pingcap/pd latest d55858ba1d82 9 months ago 151MB pingcap/tidb-vision latest e9b25d9f7bdb 3 years ago 47.6MB
我大概是明白这个问题就是官方不维护引起的,是让我们强制使用k8s, 用k8s ,命令更复杂,就让我们了解他们的kubesphere, 然后了解tidb+kubersphere 的联合用法,然后,依旧安装不料,大厂能用tidb的需求,基本的都可以拿钱找官方了。 产品确实很不错,帮忙修复下吧。呜呜
pingcap/tidb-operator v1.3.0-beta.1 19bf953fa60a 6 days ago 268MB pingcap/tidb-monitor-initializer v5.3.0 7f05e711b50a 7 weeks ago 4.52MB pingcap/tidb latest 778bf9e1e051 9 months ago 145MB pingcap/tikv latest 6e34b1d95950 9 months ago 355MB pingcap/pd latest d55858ba1d82 9 months ago 151MB pingcap/tidb-vision latest e9b25d9f7bdb 3 years ago 47.6MB
The latest
tag is misleading, we are now using nightly
tag instead. So the Docker images you mentioned above are updated 9 months ago.
我大概是明白这个问题就是官方不维护引起的,是让我们强制使用k8s, 用k8s ,命令更复杂,就让我们了解他们的kubesphere, 然后了解tidb+kubersphere 的联合用法,然后,依旧安装不料,大厂能用tidb的需求,基本的都可以拿钱找官方了。 产品确实很不错,帮忙修复下吧。呜呜
We never claimed tidb-docker-compose to be a production solution, it's for testing only, we also don't guarantee the data durability for tidb-docker-compose. Previously a user uses tidb-docker-compose for production, and lost data after system reboot. We try to avoid this happen again. So by all means tidb-docker-compose is not comparable to k8s+operator or tiup. For testing purpose, tiup playground is the recommended way to play with. And by using tiup, there is a clear path to go to production.
Latest Docker Desktop for Mac and latest TiDB