Giter VIP home page Giter VIP logo

Comments (5)

atkrad avatar atkrad commented on May 23, 2024 2

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.

atkrad avatar atkrad commented on May 23, 2024 2

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.

anvari1313 avatar anvari1313 commented on May 23, 2024 1

Hi Mohammad,

Thanks for your suggestion. It will reduce the number of initContainers

from wait4x.

atkrad avatar atkrad commented on May 23, 2024

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.

anvari1313 avatar anvari1313 commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.