amazon-ecs-java-microservices | reference architecture for java microservice | Microservice library
kandi X-RAY | amazon-ecs-java-microservices Summary
kandi X-RAY | amazon-ecs-java-microservices Summary
This is a reference architecture for java microservice on Amazon ECS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Ensures that the object is valid .
- Get a Pet by name
- Parses a PetType string .
- The list of specialties .
- Add custom cache manager customizer
- Gets the tail list .
- Get the visits for a pet .
- Gets the list of visited visits .
- The home endpoint
- Sets the id of the pet .
amazon-ecs-java-microservices Key Features
amazon-ecs-java-microservices Examples and Code Snippets
Community Discussions
Trending Discussions on amazon-ecs-java-microservices
QUESTION
I've developed two spring boot applications for microservices and I've used ECS to deploy these applications into containers. To do this, I followed the official pet clinic example (https://github.com/aws-samples/amazon-ecs-java-microservices/tree/master/3_ECS_Java_Spring_PetClinic_CICD). All seems to works correctly, but when I make a request to the ALB very often I receive the 502 or 503 HTTP error and a few times I can see the correct response of the applications. Can someone help me? Thanks in advance.
...ANSWER
Answered 2019-Sep-04 at 13:16You receive a 502 when you have no healthy task running and 503 when task is starting/restarting.
All of this mean that your task got stopped and then your cluster restart it, so you should find what make your task failed.
It can be something directly in your code that make it crash. or it can be the cluster healthcheck defined in your target group that failed.
Firstly you should look your task in the AWS ECS Console and see what error your task receive when it's stopped.
But as you are able to make request for some time and then it failed. I pretty sure your problem come from your healthcheck. So go in your target group used by the task (in AWS EC2 Console) and make sure the healthcheck path configured exist and returned a 200 status code.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install amazon-ecs-java-microservices
You can use amazon-ecs-java-microservices like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the amazon-ecs-java-microservices component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page