Skip to content

Support Zookeeper probes parameters in Apache Solr Operator helm charts. #477

Closed

Description

@iampranabroy

Describe the issue:

When deploying SolrCloud via Apache Solr Operator with ensembled Zookeeper, sometimes one of the zookeeper pods gives the below error during the start:

2021-03-29 13:33:56,645 [myid:2] - ERROR [main:QuorumPeerMain@113] - Unexpected exception, exiting abnormally
java.lang.RuntimeException: My id 2 not in the peer list
	at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:1073)
	at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:227)
	at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:136)
	at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:90)

Possible solutions:

As per the discussions in the GitHub issue-315, they are suggesting increasing the probes.readiness.initialDelaySeconds from default 10 to 30/60 sec.
Can we add support for the zookeeper config.* parameters in Apache Solr Operator helm charts?

Activity

  1. changed the title [-]Support Zookeeper `probes` inputs via Apache Solr Operator helm charts [/-] [+]Support Zookeeper `probes` parameters in Apache Solr Operator helm charts.[/+] on Sep 21, 2022
  2. mmoscher commented on Sep 26, 2022

    @mmoscher
    Contributor

    @iampranabroy did you found an interim solution?
    Facing the same issue and I think (for now) the only way to go is to deploy an separated zookeeper cluster.

    Will dig into this and will submit an PR. Shouldn't be that hard I think.

  3. iampranabroy commented on Sep 26, 2022

    @iampranabroy
    Author

    Hey @mmoscher - As of now, NO. If you can raise a PR that would be great.
    @HoustonPutman - If there are any upcoming minor releases, can we add this item?

  4. mmoscher commented on Sep 26, 2022

    @mmoscher
    Contributor

    However, can confirm that the described solutions, i.e. increasing the livenessProbe.initialDelaySeconds, works. Setting this to 30s I was able to successfully deploy a zookeeper cluster with replicas > 1.

    //Edit: false positive ... just had a bunch of luck. For now I'm unable to successfully (re-)deploy a zookeeper cluster.
    Let's move this discussion back to: pravega/zookeeper-operator#315

  5. added
    zookeeperRelated to Zookeeper or the Zookeeper Operator
    custom kube optionsAdding options related to customizing parts of the default Kubernetes resources.
    on Oct 21, 2022
  6. HoustonPutman commented on Oct 21, 2022

    @HoustonPutman
    Contributor

    @mmoscher We can definitely add probes support through the Solr Operator, but just to make sure you solved this issue independently from any Solr/ZK settings correct?

  7. mmoscher commented on Oct 25, 2022

    @mmoscher
    Contributor

    @HoustonPutman yes, solved it without using any probes.
    The problem was related to wrong NetworkPolicies and old (maybe corrupted) configs in the zookeeper PVC, cf. pravega/zookeeper-operator#315 (comment)

  8. iampranabroy commented on Oct 25, 2022

    @iampranabroy
    Author

    Hey, @mmoscher - Thanks for your response.
    In my case, I have the Solr cluster and zookeeper cluster deployed in the same namespace, but I have seen this error several times. If we can add the support for probes.readiness.initialDelaySeconds, we can see if that resolves the problem.

    @mmoscher - Do you have your zookeeper and solr deployed in the same namespace or a different namespace? Was curious about allow-zookeeper-access: true

  9. mmoscher commented on Oct 25, 2022

    @mmoscher
    Contributor

    @iampranabroy yes, all resources (Solr + ZK) in the same namespace with NetworkPolicies denying all pod's egress traffic.

  10. added this to the main (v0.7.0) milestone on Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    custom kube optionsAdding options related to customizing parts of the default Kubernetes resources.zookeeperRelated to Zookeeper or the Zookeeper Operator

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions