-
Notifications
You must be signed in to change notification settings - Fork 0
DEPLOY - v1.0.2.2 #34
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 from all commits
d7f5533
bc908c7
fddbd53
ec569c4
7739b20
1f5f292
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,8 @@ services: | |
| count: 1 | ||
| capabilities: [gpu] | ||
| container_name: app-blue | ||
| networks: | ||
| - mynetwork | ||
|
|
||
| app-green: | ||
| image: ${ECR_URI}/dearbelly-cv:latest | ||
|
|
@@ -27,4 +29,10 @@ services: | |
| - driver: nvidia | ||
| count: 1 | ||
| capabilities: [ gpu ] | ||
| container_name: app-green | ||
| container_name: app-green | ||
| networks: | ||
| - mynetwork | ||
|
|
||
| networks: | ||
| mynetwork: | ||
| driver: bridge | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,19 +16,15 @@ scrape_configs: | |
| honor_timestamps: false | ||
| scheme: 'http' | ||
| static_configs: | ||
| - targets: ['${REMOTE_HOST}:9090'] | ||
| - targets: ['127.0.0.1:9090'] | ||
| labels: | ||
| service: 'monitor-1' | ||
| - job_name: 'node' | ||
| static_configs: | ||
| - targets: ['${REMOTE_HOST}:9090'] | ||
| - job_name: 'fastapi-actuator-blue' | ||
| metrics_path: '/actuator/prometheus' | ||
| scrape_interval: 1m | ||
| - targets: ['127.0.0.1:9090'] | ||
|
Comment on lines
+19
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| - job_name: 'dcgm' | ||
| scrape_interval: 15s | ||
| static_configs: | ||
| - targets: [ 'app-blue:8000' ] | ||
| - job_name: 'fastapi-actuator-green' | ||
| metrics_path: '/actuator/prometheus' | ||
| scrape_interval: 1m | ||
| static_configs: | ||
| - targets: [ 'app-green:8001' ] | ||
| - targets: ['dcgm-exporter:9400'] | ||
| labels: | ||
| exporter: 'dcgm' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,4 @@ Pillow==11.3.0 | |
| dotenv | ||
| openai | ||
| timm | ||
| logging | ||
| prometheus-client==0.19.0 | ||
| prometheus-fastapi-instrumentator==6.1.0 | ||
| logging | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
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.
Docker 이미지에
latest태그를 사용하는 것은 프로덕션 환경에서 위험할 수 있습니다.latest태그는 언제든지 변경될 수 있어, 예기치 않은 버전이 배포되어 장애를 유발할 수 있습니다. 안정적인 배포를 위해3.3.5-3.4.2-ubuntu22.04와 같이 구체적인 버전 태그를 사용해주세요.