-
Notifications
You must be signed in to change notification settings - Fork 3
[PLT-1445] Service module adoption for AB2D contracts, events and worker services #1663
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
base: main
Are you sure you want to change the base?
Conversation
bennavapbc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will likely want to merge #1666 first? cc @juliareynolds-nava
42ecd0e
8b76940 to
42ecd0e
Compare
42ecd0e to
e894326
Compare
| image = local.contracts_image_uri | ||
| memory = 2048 | ||
| platform = module.platform | ||
| platform_version = "1.4.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If platform version matches the default could we drop it from the definition here? That way when it's updated in the module we only need to update the hash commit in the ref once it's been tested. This also applies to any other variables that match the default.
Same goes for health_check_grace_period_seconds. Leave it out instead of setting it to null.
Also it strikes me that platform_version sounds like it relates to the platform module being passed in. Could be worthwhile to rename the variable in the service module to fargate_version in CMSgov/cdap#360.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gsf Great comments. Made the following changes:
- Renamed
platform_versiontofargate_versionto be clearer. - Omitted
fargate_versionwhen it matches the default. - Since the
health_check_grace_period_secondsparameter only applies to services configured with a load balancer, it seems to be more intuitive to have the default benulland then (1) omit the parameter for non-load balanced services, and (2) explicitly set the value for services that do use a load balancer to whatever makes sense for that service's initialization time.
|
Changes have been made both to this PR and the related CDAP service module PR - see the updated Tofu plans in the description. |
🎫 Ticket
https://jira.cms.gov/browse/PLT-1445
🛠 Changes
This PR contains the changes required to migrate the AB2D contracts, events and worker services onto the CDAP service module.
The following two caveats should be noted:
contractsoreventstomicroservices. If this is not desired then microservice-specific platform modules could be passed in instead.events_serviceforce_new_deploymentflag is reverted fromtruetofalsewhich would indicate that during the previoustofu applyin the test environment this setting was overridden with an image tag which sets the flag totrue.unit-integration-test/sonarqube/testcheck on this PR failed (https://github.com/CMSgov/ab2d/actions/runs/20345958599/job/58458189335?pr=1663) with errors that appear to be unrelated to these changes. Please advise whether this test is flaky or whether it indicates an issue introduced by these changes.ℹ️ Context
With the AB2D api service having already been migrated to the CDAP service module, this PR addresses service module adoption for the remaining three AB2D services.
🧪 Validation
Tofu plan output for 20-microservices (AB2D-TEST)
Tofu plan output for 30-worker (AB2D-TEST)