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
Is your feature request related to a problem? Please describe.
It has been raised once before here but it has been quite a while since it was closed. The ability to use CockroachDB as the database would really help. The scalability, redundancy and performance built into that makes it much nicer for running applications. Right now, from what I can tell the only thing preventing people from using that is the couple of places using advisory locks.
Describe the solution you'd like
Either the removal of the advisory locks (I understand this is probably unlikely unless there is an easy way to do what it is doing) or a configuration flag or something that would disable those locks for those of us who want to use CockroachDB with the understanding its not fully supported.
Describe alternatives you've considered
No alternatives are available.
Additional context
From what I can see, there are only 5 locations that reference pglocks and only 4 that are referencing it.
This one is only used within this same file in run_migrations()
# If we could not acquire the lock, it means a task is using it, and thus is running
"is_running": notlock_acquired,
}
Summary
Aside from the above mentioned code, I am not seeing anything else that has to do with Advisory locks. I am really hoping it would not be too difficult to be able to have a way to bypass the need for advisory locks for those that want to be able to run this on CockroachDB. And there did seem to be some interest in that based on the previous issue raised.
The text was updated successfully, but these errors were encountered:
That is unlikely to happen. Those locks are necessary for proper operation, and we'll be adding a bunch more with #13492 that will be used virtually everywhere.
Is your feature request related to a problem? Please describe.
It has been raised once before here but it has been quite a while since it was closed. The ability to use CockroachDB as the database would really help. The scalability, redundancy and performance built into that makes it much nicer for running applications. Right now, from what I can tell the only thing preventing people from using that is the couple of places using advisory locks.
Describe the solution you'd like
Either the removal of the advisory locks (I understand this is probably unlikely unless there is an easy way to do what it is doing) or a configuration flag or something that would disable those locks for those of us who want to use CockroachDB with the understanding its not fully supported.
Describe alternatives you've considered
No alternatives are available.
Additional context
From what I can see, there are only 5 locations that reference pglocks and only 4 that are referencing it.
This one is only used within this same file in run_migrations()
authentik/lifecycle/migrate.py
Lines 55 to 70 in 3748781
These next three are all extending the Model class and defining the sync_lock function.
authentik/authentik/lib/sync/outgoing/models.py
Lines 42 to 49 in 3748781
authentik/authentik/sources/kerberos/models.py
Lines 165 to 172 in 3748781
authentik/authentik/sources/ldap/models.py
Lines 256 to 263 in 3748781
From what I can find, that sync_lock is only utilized in the following locations:
authentik/authentik/sources/kerberos/tasks.py
Lines 55 to 61 in 3748781
authentik/authentik/sources/ldap/tasks.py
Lines 66 to 70 in 3748781
authentik/authentik/lib/sync/outgoing/api.py
Lines 73 to 78 in 3748781
authentik/authentik/lib/sync/outgoing/tasks.py
Lines 80 to 83 in 3748781
authentik/authentik/sources/kerberos/api/source.py
Lines 112 to 116 in 3748781
authentik/authentik/sources/ldap/api.py
Lines 175 to 180 in 3748781
Summary
Aside from the above mentioned code, I am not seeing anything else that has to do with Advisory locks. I am really hoping it would not be too difficult to be able to have a way to bypass the need for advisory locks for those that want to be able to run this on CockroachDB. And there did seem to be some interest in that based on the previous issue raised.
The text was updated successfully, but these errors were encountered: