Skip to content
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

Make process number configurable in KeystoneAPI #500

Conversation

Deydra71
Copy link
Contributor

@Deydra71 Deydra71 commented Nov 13, 2024

Adds new section httpdCustomization with the option processNumber to configure the number of processes used by KeystoneAPI. The maximum number is not set, though this may be defined in the future

Jira: OSPRH-10363

description: Processumber - Number of processes running in keystone
API
format: int32
maximum: 10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about setting a max here. @d34dh0r53 @dmendiza @xek - is there a reasonable setting here or should we just leave it blank?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deleted the maximum limit for now for testing.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also don't think a maximum is needed, it's easy enough to add should this become a problem.

@Deydra71 Deydra71 force-pushed the customize-process-number branch 2 times, most recently from 93ab936 to 0bcde09 Compare November 14, 2024 10:13
@Deydra71 Deydra71 changed the title [WIP] Make process number configurable in KeystoneAPI Make process number configurable in KeystoneAPI Nov 18, 2024
@stuggi
Copy link
Contributor

stuggi commented Nov 18, 2024

This is probably something we want to be able to do across multiple service operators api deployments, but I am not sure if adding it as a top parameter for the deployment is good. if there will be more parameters we need to be able to customize related to httpd its probably better to have them in a sub struct. And this needs to be the same for all operators. @dprince @olliewalsh @abays thoughts?

maybe we should have a generic crd for httpd which allows us to extend for future customization.

@vakwetu
Copy link
Contributor

vakwetu commented Nov 18, 2024

@d34dh0r53 ^^ just for awareness of the above. @d34dh0r53 is working on changes needed for federation.

@olliewalsh
Copy link
Contributor

This is probably something we want to be able to do across multiple service operators api deployments, but I am not sure if adding it as a top parameter for the deployment is good. if there will be more parameters we need to be able to customize related to httpd its probably better to have them in a sub struct. And this needs to be the same for all operators. @dprince @olliewalsh @abays thoughts?

maybe we should have a generic crd for httpd which allows us to extend for future customization.

+1 for a sub struct. Also could potentially switch from apache/wsgi to $something_else in future

@vakwetu
Copy link
Contributor

vakwetu commented Nov 18, 2024

I'm not opposed to a substruct of some sort. That said, there are types of apache config which are much more extensive - see #479 Does the approach there change at all?

@stuggi
Copy link
Contributor

stuggi commented Nov 19, 2024

This is probably something we want to be able to do across multiple service operators api deployments, but I am not sure if adding it as a top parameter for the deployment is good. if there will be more parameters we need to be able to customize related to httpd its probably better to have them in a sub struct. And this needs to be the same for all operators. @dprince @olliewalsh @abays thoughts?
maybe we should have a generic crd for httpd which allows us to extend for future customization.

+1 for a sub struct. Also could potentially switch from apache/wsgi to $something_else in future

I was thinking about adding some subsection for httpdTunings or httpdCustomization. if there are more settings, we could just add them there, instead of having multiple top level ones.

spec:
  httpdCustomization:
    processNumber:

don't think it affects #479 as it is a separate feature which are not a generic httpd settings.

@Deydra71
Copy link
Contributor Author

@stuggi Please take a look again on the updated version, ty!

Copy link
Contributor

@stuggi stuggi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, @olliewalsh @dprince @abays for you too?

@openshift-ci openshift-ci bot added the lgtm label Nov 20, 2024
type HttpdCustomization struct {
// +kubebuilder:validation:Optional
// +kubebuilder:default=3
// +kubebuilder:validation:Minimum=1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed on slack, this needs to be tested for updating the controller/CRD on an already deployed env

@olliewalsh
Copy link
Contributor

looks good to me, if updating works

Signed-off-by: Veronika Fisarova <[email protected]>
Copy link
Contributor

@stuggi stuggi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Contributor

openshift-ci bot commented Nov 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Deydra71, stuggi, vakwetu, xek

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 322aab6 into openstack-k8s-operators:main Nov 22, 2024
6 checks passed
@Deydra71
Copy link
Contributor Author

/cherry-pick 18.0-fr1

@openshift-cherrypick-robot

@Deydra71: new pull request created: #504

In response to this:

/cherry-pick 18.0-fr1

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants