Skip to content

Commit

Permalink
healthy check
Browse files Browse the repository at this point in the history
  • Loading branch information
bakboem committed Jan 3, 2025
1 parent 0c59a23 commit f911ed0
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ management:
endpoints:
web:
exposure:
include: "*"
include: "*"
logging:
level:
root: WARN
com.codera: INFO
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ management:
endpoints:
web:
exposure:
include: "*"
include: "*"
logging:
level:
root: WARN
com.codera: INFO
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
logging:
level:
root: INFO
com.codera: DEBUG
root: WARN
com.codera: WARN
3 changes: 2 additions & 1 deletion backend/nocode-standalone-instance/kafka/.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ KAFKA_CFG_PROCESS_ROLES=broker,controller
KAFKA_CFG_NODE_ID=1
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=1@kafka:9093
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT
KAFKA_CFG_LOG_DIRS=/tmp/kraft-combined-logs
KAFKA_CFG_LOG_DIRS=/tmp/kraft-combined-logs
KAFKA_LOG4J_LOGGERS=kafka.controller=WARN,kafka.server=WARN,kafka.network=WARN
6 changes: 3 additions & 3 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ services:
env_file:
- ./backend/java-stack-microservice/spring-cloud-config/.env
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8888 || exit 1"]
test: ["CMD-SHELL", "curl -f http://localhost:8888/actuator/health || exit 1"]
interval: 10s
timeout: 5s
timeout: 10s
retries: 5
start_period: 20s
restart: always
Expand All @@ -173,7 +173,7 @@ services:
depends_on:
eureka:
condition: service_healthy

kafka:
# build:
# context: ./backend/nocode-standalone-instance/kafka
Expand Down
6 changes: 3 additions & 3 deletions docker-compose-dev.yml.bak
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ services:
env_file:
- ./backend/java-stack-microservice/spring-cloud-config/.env
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8888 || exit 1"]
test: ["CMD-SHELL", "curl -f http://localhost:8888/actuator/health || exit 1"]
interval: 10s
timeout: 5s
timeout: 10s
retries: 5
start_period: 20s
restart: always
Expand All @@ -165,7 +165,7 @@ services:
depends_on:
eureka:
condition: service_healthy

kafka:
build:
context: ./backend/nocode-standalone-instance/kafka
Expand Down
1 change: 0 additions & 1 deletion init-java-stack-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ build_local_eureka() {
-d name="$NAME" \
-d description="$DESCRIPTION" \
-d dependencies=$DEPENDENCIES \

--output "$EUREKA_DIR/eureka-server.tgz"

tar -xzf "$EUREKA_DIR/eureka-server.tgz" -C "$EUREKA_ARTIFACT_DIR"
Expand Down

0 comments on commit f911ed0

Please sign in to comment.