Comments (5)
Can't we lean just on box.info.status?
I assume you meant
upstream.status
?
No, but I got the answer :)
In my imagination tarantool should have some max_data_lag
option to go into some 'stale data' state in such cases and broadcast the new state to clients.
Now, we are going to solve the same monitoring tasks in each client on the application level.
from vshard.
Can't we lean just on box.info.status
?
NB: My old findings regarding replication monitoring: tarantool/doc#2604.
from vshard.
Can't we lean just on box.info.status?
I assume you meant upstream.status
?
Still, no. upstream.status
may be 'follow' but the replica still may have a huge lag to this upstream. For example, when master performs a batch of changes, which replica can't apply as fast as master did.
from vshard.
During fixing the initial problem i get the following upstream info in my case:
id: 1
uuid: bbbbbbbb-bbbb-4000-b000-000000000001
lsn: 60719
upstream:
peer: admin@localhost:48809
lag: 0.0002281665802002
status: stopped
idle: 169.65149075794
message: Can't modify data on a read-only instance - box.cfg.read_only is true
So monitoring upstream.lag
doesn't solve the issue, and as @sergepetrenko mentioned upstream.status
is not very effective too. Looks like it is best to check upstream.idle
.
from vshard.
Looks like it is best to check upstream.idle.
It should be a combination of both lag and idle, whichever is greater. Or, as @Totktonada suggests, we may look at box.info.status == 'orphan'
, but then we have to make replicas go orphan if they see they stopped catching up with the master (this is a breaking change).
Or it can be box.info.status == 'stale_data'
.
from vshard.
Related Issues (20)
- Assert in `conn_manager_collect_idle_conns()`
- Add a backoff to `master_call()` and `router_call()` when master discovery fails multiple times HOT 6
- `reload_evolution/storage.test.lua` behaves strange when `vshard.cfg` is included in `lua_libs/util` HOT 1
- replicaset: async call yields, when connection is not established
- Expose current `identification_mode`
- Hot reload is broken if name is key
- log: 'deploying exports' message has no core version HOT 1
- Expose this replica vshard URI
- Bucket space protection triggers must check storage ref count too, for better safety
- Some error when alert construction.
- vshard.storage.bucket_stat() fails when called in trigger on vinyl space. HOT 1
- After upgrade from 2.11 vshard won't work until restart HOT 6
- Can you suggest any approach for backup/restore for sharded database,
- Router sends requests to dead instances HOT 1
- During rebalancing process some requests on router fails HOT 2
- During reconfiguration process some requests on router fails HOT 2
- Failover must change priority based on ping
- Allow to make several requests with hanging connection HOT 1
- Allow to backoff replica if request fails
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 vshard.