Comments (2)
I am working hard on the feature. I encountered an issue during test verification:
PD's StatefulSet
podManagementPolicy is OrderedReady
, so if the 0
ordinal Pod was not ready, the StatefulSet
can't be scaled out, which means can't failover.
I will change the pd podManagementPolicy to Parallel
before the pd failover. Which will be another pr.
from tidb-operator.
Another issue: when failover with current pd start script, the ordinal 0 pd will start as a new pd cluster, because it will start with initial-cluster
option and new empty data dir when the ordinal is 0.
Solution:
Change the pd podManagementPolicy
to Parallel
Add an annotation key bootstrapping
to PD's ordinal 0 Pod to indicate that the cluster is bootstrapping, and a replicas
annotation to indicate the replicas of current pd cluster.
- if there are no PVCs that ordinal is greater than 0, set
bootstrapping
to true - else set
bootstrapping
to false
Modify the pd start script
- if the ordinal is greater than 0, verify the cluster is working now before starting when cluster bootstrapping
- if the ordinal is 0 and
bootstrapping
is true, useinitial-cluster
option to start this member, else usejoin
option to start this member instead.
@tennix @onlymellb @xiaojingchen PTAL
from tidb-operator.
Related Issues (20)
- az c snpshot backup takes a long time HOT 1
- ebs br: for a 100T cluster after restore, the QPS decreased and became unstable in the first two hours HOT 2
- there are 2 running volumebackup during volumebackupschedule HOT 1
- ebs br: pipeline snapshot generation and the size calculation HOT 1
- backup job is stuck(snapshot is completed)
- The EBS backup task may cause the import task to fail HOT 3
- volumerestore 时,operator 报错“sync failed, err: read backup meta from bucket qa-workload-datasets and prefix airbnb-ebs/rpod_loss_with_pdleader_10min-tidb-operator-ebs-2, err: blob (key "backupmeta") (code=Unknown)” HOT 2
- it is recommended to check the number of tikv volumes when restoring
- ebs br: EBS snapshot restore could panic during lightning ingest SST phase HOT 2
- ebs br: When the restore data pod fails, the volumerestore task status is not set to failed HOT 3
- TiKV failure last for 1 minute can cause backup failure HOT 1
- kill restore-data pod will cause restore failed HOT 3
- `clusterScoped` and namespaced owners HOT 3
- delete restore data pod when restoring will cause restore progress stuck HOT 4
- `clusterScoped` monitor attempts to create ClusterRole and ClusterRoleBinding with namespaced owner
- ebs br: support multiple warmup solution for tikv data volumes HOT 4
- Operator got stuck resizing TiKv storage? HOT 2
- do volumebackup after scaling out cluster, backup failed HOT 1
- ebs br: support supress option for scheduled volume backup HOT 1
- br: support backup manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidb-operator.