-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When starting up two is servers by setting replica 2, DUPLICATE entry execption is thrown. #7
Comments
@Megala21 @malithie I experienced the same problem a number of times. A possible solution for this is the introduction of Kubernetes liveness probes [1]. For example, under the WSO2 product Kubernetes resource unification process that began recently, I managed to build up a IS two node cluster in which I've used liveness probes to conduct port scanning (port 9443) to check the liveness of each IS pod as follows:
If the server startup has failed due to the discussed issue, the liveness probe fails. As a result, it will spawn up a new IS pod after killing the existing unhealthy pod. |
During testing it was experienced that the solution suggested in #7 (comment) does not provide the most perfect solution to the discussed issue. It was experienced that the server startup takes place successfully even while the above errors are occurring. Hence, the current solution that has been adopted is to instruct the user to scale [1] the number of Identity Server instances as desired. By default, the setup is initiated with a single Identity Server instance. |
Still, we have errors when starting the server parallel. |
Description:
When starting up two is servers by setting replica 2, DUPLICATE entry execption is thrown. This exception is thrown due to two nodes trying to write the same entry simultaneously.
Ex - DUPLICATE_ENTRY exception when creating admin user, admin role.
Suggested Labels:
Bug
Suggested Assignees:
N/A
Affected Product Version: IS 5.4.0, 5.4.1, 5.5.0
OS, DB, other environment details and versions: Tested aginnst google cloud kubernates engine.
Steps to reproduce:
Add replica count 2, in is-deployment.yaml and deploy and see the pod logs.
Related Issues:
N/A
The text was updated successfully, but these errors were encountered: