Comments (1)
Hey, we've finally implemented health checks in v1.6.0 that can be used for liveness probes.
The Tzkt.Api
implements health checks via API endpoint. Settings:
"HealthChecks": {
"Enabled": true,
"Endpoint": "/health"
}
After this you can use /health
(or whatever you specified in the settings) endpoint. If it returns HTTP 200, then everything's ok.
The Tzkt.Sync
implements health checks by creating and touching the file on the disc. Settings:
"HealthChecks": {
"Enabled": true,
"Delay": 10,
"Period": 15,
"FilePath": "/tmp/sync.health"
}
After Delay
seconds you can check if the file at the specified path was modified within the last Period
seconds. If yes, then everything's ok. For k8s it should look like this:
livenessProbe:
exec:
command:
- find
- /tmp/sync.health
- -mmin
- '-15'
initialDelaySeconds: 10
periodSeconds: 15
from tzkt.
Related Issues (20)
- Please migrate to .net 7 (or at least 6) HOT 2
- Please suggest service requirements HOT 2
- Allow overriding the number of attempts in TzKt.Api HOT 2
- Accept protocol Alpha HOT 2
- Protocol invoice for Florence activation done at wrong height HOT 2
- Strange indexer sync behavior HOT 21
- Discrepency between tzstats and tzkt HOT 8
- Indexer got stuck in reverting status HOT 9
- Duplicate and overlapping DB indexes HOT 1
- Tzkt.Sync no longer working on ghostnet HOT 1
- Error Message: https://ghostnet.tzkt.io/ HOT 3
- dotnet publish stuck at project restore HOT 2
- Protocol not supported issue HOT 13
- I can't access tzkt explorer through api endpoint HOT 8
- Not issuing is our key to keep protecting safe progressions*!
- Test
- Slashing of unstaked deposits cannot be implemented due to bugs in Oxford HOT 1
- bug when sync data HOT 1
- Paris B: Minimal Balance HOT 5
- `externalDelegatedBalance` discrepancy with delegator list HOT 3
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 tzkt.