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

Adds a simple healthcheck endpoint to the identity app #10617

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

kenoir
Copy link
Contributor

@kenoir kenoir commented Jan 26, 2024

What does this change?

This change is part of #10545 and adds a healthcheck endpoint to the content app so we can really check the health of the app before it is deployed. At present the healthcheck terminates at the nginx container so during deployment (and normal running) we don't check if the app has properly started.

Same change for the content app: #10612

See https://github.com/wellcomecollection/platform-infrastructure/blob/main/images/dockerfiles/nginx/frontend.nginx.conf#L24

Note

This will require a further change to remove the nginx config that fields the healthcheck request there.

How to test?

  • Run locally, ensure the healthcheck is available and the app runs as expected.
  • Deploy this change and check there is no change to functionality.

How can we measure success?

No downtime during deployments resulting in a better experience for visitors to the site, and fewer errors that we cannot effectively respond to in the alerts channel. Deployments that really check if the app is running avoiding situations where we deploy a broken service.

@kenoir kenoir requested review from a team January 26, 2024 15:29
@kenoir kenoir linked an issue Jan 26, 2024 that may be closed by this pull request
13 tasks
Copy link

Size Change: 0 B

Total Size: 876 kB

Filename Size Change
content/webapp/.next/static/chunks/pages/articles/[articleId]-3f4045ce1fcfbd27.js 0 B -3.59 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/covid-welcome-back-7eddae17cb851364.js 0 B -11.3 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/exhibitions/[exhibitionId]-4161a7aa38c8e5d5.js 0 B -4.01 kB (removed) 🏆
content/webapp/.next/static/chunks/pages/articles/[articleId]-53e1bfa36b2d702b.js 3.59 kB +3.59 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/covid-welcome-back-284792a8249d1fac.js 11.3 kB +11.3 kB (new file) 🆕
content/webapp/.next/static/chunks/pages/exhibitions/[exhibitionId]-04ad51dffa7ee96f.js 4.01 kB +4.01 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
content/webapp/.next/static/chunks/00a8a139.35fd3649f0630c69.js 59 kB
content/webapp/.next/static/chunks/1135-6df3323caa574cb8.js 3.04 kB
content/webapp/.next/static/chunks/1386-116d3de22096e71b.js 4.59 kB
content/webapp/.next/static/chunks/1500-85a605eb98d644c9.js 2.87 kB
content/webapp/.next/static/chunks/1747-66a985c121c3f57a.js 6.08 kB
content/webapp/.next/static/chunks/2101-24c1d10e16c3dd18.js 3.78 kB
content/webapp/.next/static/chunks/2184-51e4da8c93210bf8.js 4.74 kB
content/webapp/.next/static/chunks/2889.a12df9badd5246c3.js 1.77 kB
content/webapp/.next/static/chunks/3693-4593a32c8345896b.js 12.2 kB
content/webapp/.next/static/chunks/3734-e781fa97b8cc886f.js 6.5 kB
content/webapp/.next/static/chunks/3781-3c06d2315ee12517.js 6.83 kB
content/webapp/.next/static/chunks/4696.1651dbabd4730180.js 1.22 kB
content/webapp/.next/static/chunks/6276-52b213358f54f3aa.js 2.91 kB
content/webapp/.next/static/chunks/6577-26aad86ec9c90e4e.js 3.5 kB
content/webapp/.next/static/chunks/6601-3b97b443aef2cd4e.js 4.83 kB
content/webapp/.next/static/chunks/6651-e80c2951521d8d4b.js 2.5 kB
content/webapp/.next/static/chunks/6677.09e4ad62fda8efa2.js 19.9 kB
content/webapp/.next/static/chunks/7107-26a58cfe2165819e.js 26.6 kB
content/webapp/.next/static/chunks/7635-a31f50df8c54642e.js 3.5 kB
content/webapp/.next/static/chunks/7689-c29977a9895407ea.js 19.2 kB
content/webapp/.next/static/chunks/8257-17617af96568af71.js 18.2 kB
content/webapp/.next/static/chunks/8540-62093c7c280e1855.js 3.33 kB
content/webapp/.next/static/chunks/9065-d73464049983a1ac.js 7.53 kB
content/webapp/.next/static/chunks/9519-7e7346d98811dc9d.js 7.45 kB
content/webapp/.next/static/chunks/9608-6ee52cf68e6cd812.js 4.44 kB
content/webapp/.next/static/chunks/framework-efbec734d81f6e89.js 45.2 kB
content/webapp/.next/static/chunks/main-74d7cc624ff0880f.js 30.6 kB
content/webapp/.next/static/chunks/pages/_app-3e8760ad0daeb718.js 105 kB
content/webapp/.next/static/chunks/pages/_error-ce2a222093c6d80c.js 332 B
content/webapp/.next/static/chunks/pages/404-33af99be220a02ef.js 258 B
content/webapp/.next/static/chunks/pages/500-607137af978be821.js 257 B
content/webapp/.next/static/chunks/pages/articles-7e47a616e4147b13.js 3.52 kB
content/webapp/.next/static/chunks/pages/books-23313c06a0ea4ae7.js 3.54 kB
content/webapp/.next/static/chunks/pages/books/[bookId]-2db10b3cc42c5e71.js 1.55 kB
content/webapp/.next/static/chunks/pages/collections-e09d754e56846256.js 2.13 kB
content/webapp/.next/static/chunks/pages/concepts/[conceptId]-996a03896a77cf82.js 7.67 kB
content/webapp/.next/static/chunks/pages/event-series/[eventSeriesId]-c6f129130c15a42c.js 3.56 kB
content/webapp/.next/static/chunks/pages/events-ce04c1ec720a56f2.js 3.65 kB
content/webapp/.next/static/chunks/pages/events/[eventId]-147f695e570f2416.js 8.13 kB
content/webapp/.next/static/chunks/pages/events/[eventId]/visual-stories-b640fea7f5da955b.js 1.55 kB
content/webapp/.next/static/chunks/pages/exhibitions-4c78223f8cbb3abf.js 3.84 kB
content/webapp/.next/static/chunks/pages/exhibitions/[exhibitionId]/visual-stories-6e4c63cdc43203d0.js 1.56 kB
content/webapp/.next/static/chunks/pages/guides/[pageId]-575a4c9fcd085418.js 2.04 kB
content/webapp/.next/static/chunks/pages/guides/exhibitions-d12654a7f09e5728.js 3.61 kB
content/webapp/.next/static/chunks/pages/guides/exhibitions/[id]-c0c0f52a2e93cecd.js 4.36 kB
content/webapp/.next/static/chunks/pages/guides/exhibitions/[id]/[type]-e5bb1fb35e20e61a.js 4.48 kB
content/webapp/.next/static/chunks/pages/index-130c22afb296ba63.js 1.86 kB
content/webapp/.next/static/chunks/pages/newsletter-68999b0a96266799.js 2.37 kB
content/webapp/.next/static/chunks/pages/pages/[pageId]-d4f81fcf3cb0a047.js 2.01 kB
content/webapp/.next/static/chunks/pages/projects/[pageId]-c4c57b2e696f1839.js 2.04 kB
content/webapp/.next/static/chunks/pages/search-b6b273a5c6f84a6c.js 5.58 kB
content/webapp/.next/static/chunks/pages/search/events-4f4ffc7b616a5ce7.js 2.76 kB
content/webapp/.next/static/chunks/pages/search/images-c4e493929938b157.js 2.12 kB
content/webapp/.next/static/chunks/pages/search/stories-7e88761d47d1c5f7.js 3.43 kB
content/webapp/.next/static/chunks/pages/search/works-253c59afc23480af.js 3.4 kB
content/webapp/.next/static/chunks/pages/seasons/[seasonId]-4550851541a90db2.js 1.46 kB
content/webapp/.next/static/chunks/pages/series/[seriesId]-e2a884d19b923214.js 4.03 kB
content/webapp/.next/static/chunks/pages/stories-d92e8ce5cc2a53bf.js 3.61 kB
content/webapp/.next/static/chunks/pages/stories/[contentType]-cc3da52b86784d9f.js 3.57 kB
content/webapp/.next/static/chunks/pages/visit-us-bed71acfae12ee96.js 2.46 kB
content/webapp/.next/static/chunks/pages/visual-stories/[visualStoryId]-714c01b176309ac3.js 1.52 kB
content/webapp/.next/static/chunks/pages/whats-on-d34737c8f7ecdb1f.js 202 B
content/webapp/.next/static/chunks/pages/whats-on/[period]-61bb1c8d2efc89ca.js 271 B
content/webapp/.next/static/chunks/pages/works/[workId]-efe98788aacfb574.js 24.1 kB
content/webapp/.next/static/chunks/pages/works/[workId]/download-0e2548b4fca26a63.js 5.32 kB
content/webapp/.next/static/chunks/pages/works/[workId]/images-0627e1674682a188.js 1.08 kB
content/webapp/.next/static/chunks/pages/works/[workId]/items-050940e7f826a42e.js 4.5 kB
content/webapp/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js 31 kB
content/webapp/.next/static/chunks/webpack-b43577efcaa1e91b.js 1.67 kB
identity/webapp/.next/static/chunks/374.94537fd117195c86.js 2.48 kB
identity/webapp/.next/static/chunks/432.fa29da5acdb8e0b1.js 744 B
identity/webapp/.next/static/chunks/442-29780463d96993ea.js 8.35 kB
identity/webapp/.next/static/chunks/644-6570c06909c1478e.js 5.92 kB
identity/webapp/.next/static/chunks/677.a0884a27fb537187.js 19.9 kB
identity/webapp/.next/static/chunks/framework-19f3649580393c10.js 45.2 kB
identity/webapp/.next/static/chunks/main-d973a3979032d64a.js 32.2 kB
identity/webapp/.next/static/chunks/pages/_app-5457326831927069.js 98 kB
identity/webapp/.next/static/chunks/pages/_error-8e82953fa241027d.js 1.42 kB
identity/webapp/.next/static/chunks/pages/delete-requested-5e021bca8d83030a.js 3.12 kB
identity/webapp/.next/static/chunks/pages/error-17d4e8a2b11f419d.js 1.59 kB
identity/webapp/.next/static/chunks/pages/index-2a07d9152e8a7644.js 11.8 kB
identity/webapp/.next/static/chunks/pages/registration-267eb3bb0c6cf79d.js 4.03 kB
identity/webapp/.next/static/chunks/pages/success-077b471ecf00653a.js 3.19 kB
identity/webapp/.next/static/chunks/pages/validated-69c0d064cd2b3867.js 3.27 kB
identity/webapp/.next/static/chunks/polyfills-c67a75d1b6f99dc8.js 31 kB
identity/webapp/.next/static/chunks/webpack-713796e2734212eb.js 1.81 kB

compressed-size-action

@kenoir kenoir merged commit a15c835 into main Jan 26, 2024
6 checks passed
@kenoir kenoir deleted the rk/add-healthcheck-endpoint-identity branch January 26, 2024 15:49
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.

Meaningful ECS service health checks
2 participants