This message was deleted.
# opal
s
This message was deleted.
o
Hi @Oscar OPAL doesn't persist the data, but instead retchs it when the client restarts. I'm guessing what you are experiencing is a race condition between the policy update(which can contain data in data.json, and the regular data updates
o
I mean if there are some data updates by 'opal-client publish-data-update', then we will lost all those updates once restart the server.
Then we have to keep those updates and do them again after server running?
Otherwise, we only can update data by git repo.
o
Yes, but the client will refetch according to
DATA_SOURCES_CONFIG
which should always provide the full current state
o
yes, it needs to keep full data in data sources.
o
Another option is to use offline mode (store backup and reuse) with
OPAL_OFFLINE_MODE_ENABLED=1
See here: https://docs.opal.ac/getting-started/running-opal/run-opal-client/opa-runner-parameters#policy-store-backup
o
Ok, let me take a look. Thanks.
🤘 1
✅ 1
r
@Or Weis @Oscar Using the offline mode for that is a cool idea, but use it with caution. The main purpose of this feature is to avoid downtime if client goes up and server is not reachable for any reason. Make sure that new data (from singular push updates) won’t be overridden by older data after restart once connection to server is established (if your server’s git repo / data sources points to older data on the same paths).
✅ 1
o
@Ro'e Katz thanks
p
Hi, thanks for reaching out 😇; It seems most of the team is AFK(😴) at the moment, so our response might be delayed.