Comments (5)
Hi Ahmad,
Based on our conversation. You can try our new feature https://github.com/atkrad/wait4x#command-execution to have a single initContainer
instead of multiple of initContainer
.
If the feature doesn't resolve your issue, I would gladly accept a pull request for that.
from wait4x.
Hi @anvari1313,
Currently, Wait4X supports multiple inputs like this:
wait4x tcp localhost:8081 localhost:8082 localhost:8083 -t300s
It checks all of the inputs paralleled. I hope the feature can be helpful for you.
from wait4x.
Hi Mohammad,
Thanks for your suggestion. It will reduce the number of initContainers
from wait4x.
Hi Ahmad,
Thanks for your suggestion. It is an interesting feature. If we want to implement that with multiple arguments, Maybe it has a conflict with the #22 or other parts of Wait4X.
Anyway, We need time to think about that to find the best solution for implementing that.
Is it possible to explain your use case on the deployment process? Maybe I can suggest another solution.
from wait4x.
Hi Mohammad,
As you know, we use initContainers
in k8s Deployment
for our API gateway to check the healthiness of upstream backends (in On-Demand Environments). For each service, there's a wait4x
container sending an HTTP request to it. As the number of microservices grows, more init containers are added and it makes API gateway pod restarts very time-consuming (For example for a config change).
A simple solution is to run all of them in just one container and chain wait4x
commands with &&
of bash. The issue is it doesn't provide enough visibility about which services have issues unless we set the log level of wait4x
to debug.
I was thinking that maybe checking multiple addresses with more detailed logs can be a useful feature.
By the way, I would be glad to contribute if you decide to have this feature.
from wait4x.
Related Issues (19)
- Honor a TZ env var to set the timezone of the docker image HOT 2
- Adjust pipeline to output .exe for Windows instead of file without extension HOT 5
- ASDF Plugin HOT 1
- Add `go install` instructions in the Readme HOT 1
- Incorrect log level for errors when checking resources HOT 1
- Kafka support HOT 1
- NATS Support HOT 1
- Do not reveal passwords in logs HOT 1
- --expect-body-json comparison with value HOT 1
- Support POSTing data in http HOT 1
- HEAD http method support
- Support Context in Checkers
- Please provide arm images, too HOT 5
- Alpine Linux version don't support Command Execution HOT 3
- Disable logging HOT 1
- Wait indefinitely HOT 6
- Support HTTP Proxy
- Support self-signed TLS certiticate on HTTP component HOT 22
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 wait4x.