How to detect all OPAL_DATA_CONFIG_SOURCES have been fully loaded at startup #887
Unanswered
goncalo-silva-prt
asked this question in
Q&A
Replies: 1 comment 7 replies
-
|
Hi, Welcome 🤗 If ready remains false, it means something failed in loading either the policy or data. Note: You must have some policy and some data. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are using OPAL_OPA_HEALTH_CHECK_POLICY_ENABLED to try to detect when all initial data entries have been fully loaded into OPA.
Our setup uses OPAL_DATA_CONFIG_SOURCES with external_source_url. The external endpoint is responsible for doing partitioning of th data and returning the multiple entries(for example, http://our-api.com/api/users?partition=0, http://our-api.com/api/users?partition=1, etc).
We observed the following behaviors when calling /v1/data/system/opal/:
We are not using the policy updater (OPAL_POLICY_UPDATER_ENABLED=false) and the server has OPAL_REPO_WATCHER_ENABLED=false.
Is there a built-in or recommended way to know when all entries from the external_source_url are fully loaded?
We need that to identify when an instance is ready to receive traffic.
Beta Was this translation helpful? Give feedback.
All reactions