-
Notifications
You must be signed in to change notification settings - Fork 66
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
Create the additional seeds service only if necessary #347
Comments
This was the old behavior, but it was modified for the k8ssandra-operator requirements. |
We can revert to the old behavior since k8ssandra-operator is managing the endpoints for the additional-seeds-service. |
Please add your planning poker estimate with ZenHub @burmanm |
From a design perspective, there's only one question here. Are we happy with the concept that, if a user adds I don't think there is a way around this given that the additional seeds service will not exist until it is strictly required. It therefore won't be able to appear in the list of seeds maintained by Cassandra. So there will be some cassandra.yaml work here too. |
There shouldnt be any new work for changes to cassandra.yaml. |
Don't the additional seeds need to be added/not added according to whether the service exists? |
Yes and that requires a change and rolling restart. This was also the original reason the service always exists, so that adding a DC wouldn't cause the original DC to restart. |
It does require a rolling restart. Can't we add additional seeds up front if we are dealing with a K8ssandraCluster deployment so as to avoid rolling restarts? Then don't add additional seeds otherwise to avoid the warnings in the logs which confuse users. |
Can I get an update on whether we want to proceed with this ticket @adejanovski and @jsanda? |
I do want to proceed. The warnings in the logs is source of confusion that comes up frequently for users only using cass-operator. We just need to make sure to preserve existing behavior for k8ssandra-operator. That is, for a K8ssandraCluster the additional seeds service should be created up front. |
Awesome, moving this to |
This is something that could be fixed in the mgmt-api also, since it iterates over the service targets. If there's no IPs, then it should not add them as seeds either. Only complain if none of the targets have any IPs. |
That's a good point actually, we're probably going to see errors in mgmt api I assume if it goes looking for a non-existent service... Might need to make changes there too. |
Couldn't it be fixed with changes only in management-api as @burmanm suggested? |
The ticket says |
The motivation for the ticket is to avoid the warnings. If we can just do the change in the management-api and avoid the warnings then that would address the ultimate goal. We |
So this ticket was raised as a follow up from this one which I raised. MY motivation was originally about simplifying the services deployed, but it sounds like maybe folks are looking for a variety of different things here. I'm sure we can suppress the warnings in management API if that's preferred, we should just update this ticket name to reflect what we're really trying to achieve. |
Alternatively, could we point the additional-seed-service to use the same endpoint as the seed-service if it's empty? |
Following up on this issue, it would be nice to avoid creating the
additionalSeeds
service unless it's necessary.Quote from the original issue:
┆Issue is synchronized with this Jira Story by Unito
┆Issue Number: CASS-39
The text was updated successfully, but these errors were encountered: