-
Notifications
You must be signed in to change notification settings - Fork 3
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
Changes to allow DB configuration and scaling #47
Conversation
@@ -1,6 +1,8 @@ | |||
package uk.gov.ons.ctp.response.sample; | |||
|
|||
import net.sourceforge.cobertura.CoverageIgnore; | |||
|
|||
import org.apache.tomcat.jdbc.pool.DataSource; |
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.
Unused import
.checkstyle
Outdated
@@ -0,0 +1,13 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
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.
What's this?
Codecov Report
@@ Coverage Diff @@
## master #47 +/- ##
=======================================
Coverage 62.42% 62.42%
=======================================
Files 24 24
Lines 503 503
Branches 45 45
=======================================
Hits 314 314
Misses 180 180
Partials 9 9 Continue to review full report at Codecov.
|
…thub.com/ONSdigital/rm-sample-service into performance-improvement-1300-concurrency
Motivation and Context
It turns out that the database parameters in application-cloud.yml are overridden by CloudFoundry. This changes that!
What has changed
DataSourceConfiguration
has been added which forces Spring Boot to use the config rather than CloudFoundry's one from buildpacksHow to test?
You'll need to push to CloudFoundry to see the impact of these changes. The easiest way is to set
spring.datasource.tomcat.max-idle
to a higher number thanmax-active
; this will cause Spring Boot to log out a message just after the service starts that max-idle is higher than max-active and give you the figures in the .yml. If it says it's setting it to 4, it's broken (these are the defaults CF was injecting)