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

Changes to allow DB configuration and scaling #47

Merged
merged 9 commits into from
Jun 13, 2018

Conversation

mfcrocker
Copy link
Contributor

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 buildpacks

How 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 than max-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)

@mfcrocker
Copy link
Contributor Author

@@ -1,6 +1,8 @@
package uk.gov.ons.ctp.response.sample;

import net.sourceforge.cobertura.CoverageIgnore;

import org.apache.tomcat.jdbc.pool.DataSource;
Copy link
Contributor

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"?>
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this?

@codecov
Copy link

codecov bot commented Jun 11, 2018

Codecov Report

Merging #47 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aab2deb...d0f6c79. Read the comment docs.

@mfcrocker mfcrocker merged commit 3943b53 into master Jun 13, 2018
@mfcrocker mfcrocker deleted the performance-improvement-1300-concurrency branch June 13, 2018 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants