Giter Club home page Giter Club logo

Comments (6)

rvowles avatar rvowles commented on July 1, 2024 1

image (6)
image (7)
image (8)
image (9)

Have landed along with a diagnostic API on Dacha1 FeatureHub instances. This is in 1.6.1-RC+

from featurehub.

rvowles avatar rvowles commented on July 1, 2024

So the Dacha1 protocol is such that a Dacha1 will become ready under two conditions:

(1) When it is told that the number of service accounts it now has in its cache is equal to the number of service accounts that is attached to each service account record, or it is told that there are no service accounts. Each PublishServiceAccount has the details of the service account AND the total number of service accounts.
(2) The same occurs for environments.

In a k8s cluster, a not-ready Dacha1 will not get traffic routed to it, so there is no issue with what the error response codes are.

I'm wondering if the issue is actually timed based. Explaining how this worked has made me think of a possible issue.

from featurehub.

rvowles avatar rvowles commented on July 1, 2024

I was checking to see if one dacha filling another dacha after a reset caused the original dacha to publish environment & service account "counts" with the wrong values, but they don't, if one dacha fills another, it resets the total number to what it has in its own cache correctly. Back to sq one.

from featurehub.

rvowles avatar rvowles commented on July 1, 2024

The code base as 3 dacha servers configured as test cases, i ran up two and then shut down the nats server and started the 3rd. The 1st two started complaining about lost connectivity and the 3rd wouldn't come ready. i started the nats server again and they recovered and the 3rd one advertised for its cache (when the health check was hit) and became ready (with the correct number of environments in the cache). So I'm at a bit of a loss.

from featurehub.

MarcRoser avatar MarcRoser commented on July 1, 2024

Similar issue that may happen after k8s has no resources left (cpu/ram/...) : when k8s is ready again :

  • the features may not be updated correctly anymore (retired ones are still sent, changes are not sent)
  • "API KEY does not exist." may happen with valid key (retries works with the same key)
  • Everythings seems ok with the edge / admin / database

In order to be stable again, we need to stop all dacha and than start them again.

Not reproduced when k8s is not overloaded (thus it should not happen)... I was waiting to have more info before creating a issue.

from featurehub.

rvowles avatar rvowles commented on July 1, 2024

Yes, I expect that if something causes starvation it's going to be an issue. There is a PR that will let you do a full cache republish.

from featurehub.

Related Issues (20)

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.