You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can sometimes be desirable to run Marquez in a read-only mode. For example, if you have a read replica of your database and want to scale querying separately from ingestion, you might deploy one or more instances of Marquez pointed at your reader. Currently if you do this you'll an error starting with:
org.jdbi.v3.core.statement.UnableToExecuteStatementException: org.postgresql.util.PSQLException: ERROR: cannot execute INSERT in a read-only transaction
This is because Marquez does an upsert operation for the default namespace at startup. So for a true reader to work we need a way to disable this. It would also make sense to disable non-GET endpoints.
One idea discussed was to move the namespace creation to a Flyway script. However, we decided on adding a new readOnly flag in the Marquez config file, which will drive the above mentioned changes in behaviour.
The text was updated successfully, but these errors were encountered:
It can sometimes be desirable to run Marquez in a read-only mode. For example, if you have a read replica of your database and want to scale querying separately from ingestion, you might deploy one or more instances of Marquez pointed at your reader. Currently if you do this you'll an error starting with:
This is because Marquez does an upsert operation for the default namespace at startup. So for a true reader to work we need a way to disable this. It would also make sense to disable non-GET endpoints.
One idea discussed was to move the namespace creation to a Flyway script. However, we decided on adding a new
readOnly
flag in the Marquez config file, which will drive the above mentioned changes in behaviour.The text was updated successfully, but these errors were encountered: