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 servers are not assigned regions #82

Open
noirgif opened this issue Dec 7, 2019 · 3 comments
Open

TiKV servers are not assigned regions #82

noirgif opened this issue Dec 7, 2019 · 3 comments
Assignees

Comments

@noirgif
Copy link

noirgif commented Dec 7, 2019

I'm using Archlinux, 5.4.1 kernel. Docker version Docker version 19.03.5-ce, build 633a0ea838.

Steps to reproduce:

  1. Follow the instructions for docker-compose, but use network=host, and comment everything out except TiKV and PD sections.
  2. call pd-ctl region
    It showed only one peer in the region, other two are missing.

Calling pd-ctl region store <id> on the stores attests to the results(only one of the store has a region).

Calling pd-ctl store show will return all the stores, so I assume all TiKVs are connected to PDs.

Caling pd-ctl member showed that all PDs are connected.

This can be reproduced with the docker swarm as well. I created a container with pd-ctl in it to access nodes in the overlay network, and the results are the same as above.

@tennix
Copy link
Member

tennix commented Dec 8, 2019

@noirgif Thank you for reporting this. Here are what I can get from your context:

  • First, I tried to reproduce this on my Linux machine. But the regions are spread on 3 TiKVs.
  • Second, from the pd-0 log file, there is gRPC context canceled error and pd continue reporting store has no leader and store has no follower.

@nolouch Could you take a look at this issue?

@nolouch
Copy link
Member

nolouch commented Dec 11, 2019

Hi, @noirgif . according to the log:

[2019/12/06 19:55:09.678 +00:00] [DEBUG] [replica_checker.go:80] ["region has fewer than max replicas"] [region-id=4] [peers=1]
[2019/12/06 19:55:09.680 +00:00] [DEBUG] [replica_checker.go:122] ["no best store to add replica"] [region-id=4]
[2019/12/06 19:55:09.779 +00:00] [DEBUG] [replica_checker.go:80] ["region has fewer than max replicas"] [region-id=4] [peers=1]
[2019/12/06 19:55:09.779 +00:00] [DEBUG] [replica_checker.go:122] ["no best store to add replica"] [region-id=4]

The problem is that the available capacity : 13G is too low to compare to capacity:108 G. you can change the tikv config:

[raftstore]
capacity = "10GB"

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

3 participants