노마드
포괄적인 HashiCorp Nomad 명령 및 워크로드 오케스트라, 작업 스케줄링 및 클러스터 관리를위한 워크플로우.
설치 및 설치
Command |
Description |
nomad version |
Show Nomad version |
nomad agent -dev |
Start development agent |
nomad agent -config=nomad.hcl |
Start with configuration |
nomad server members |
List server members |
nomad node status |
List client nodes |
작업 관리
작업 작업
Command |
Description |
nomad job run example.nomad |
Submit job |
nomad job status |
List all jobs |
nomad job status example |
Show job details |
nomad job stop example |
Stop job |
nomad job stop -purge example |
Stop and purge job |
직업 계획 및 검증
Command |
Description |
nomad job plan example.nomad |
Plan job changes |
nomad job validate example.nomad |
Validate job file |
nomad job inspect example |
Inspect job configuration |
nomad job history example |
Show job history |
채용 정보
Command |
Description |
nomad job scale example 5 |
Scale job to 5 instances |
nomad job scale example group 3 |
Scale specific group |
Allocation 관리
Allocation 운영
Command |
Description |
nomad alloc status |
List allocations |
nomad alloc status ALLOC_ID |
Show allocation details |
nomad alloc logs ALLOC_ID |
Show allocation logs |
nomad alloc logs -f ALLOC_ID |
Follow allocation logs |
nomad alloc exec ALLOC_ID /bin/bash |
Execute command in allocation |
Allocation 디버깅
Command |
Description |
nomad alloc fs ALLOC_ID |
List allocation files |
nomad alloc fs ALLOC_ID /path/to/file |
Read allocation file |
nomad alloc restart ALLOC_ID |
Restart allocation |
nomad alloc stop ALLOC_ID |
Stop allocation |
노드 관리
Node 운영
Command |
Description |
nomad node status |
List all nodes |
nomad node status NODE_ID |
Show node details |
nomad node drain NODE_ID |
Drain node |
nomad node eligibility -disable NODE_ID |
Disable node scheduling |
nomad node eligibility -enable NODE_ID |
Enable node scheduling |
Node 유지
Command |
Description |
nomad node drain -enable -deadline 30m NODE_ID |
Drain with deadline |
nomad node drain -disable NODE_ID |
Cancel drain |
nomad node meta apply NODE_ID key=value |
Set node metadata |
Namespace 관리
Command |
Description |
nomad namespace list |
List namespaces |
nomad namespace status default |
Show namespace details |
nomad namespace apply -description="Dev environment" dev |
Create namespace |
nomad namespace delete dev |
Delete namespace |
ACL 관리
ACL 운영
Command |
Description |
nomad acl bootstrap |
Bootstrap ACL system |
nomad acl token create -name="dev-token" -policy=dev-policy |
Create token |
nomad acl token list |
List tokens |
nomad acl token info TOKEN_ID |
Show token details |
ACL 정책
Command |
Description |
nomad acl policy apply dev-policy dev-policy.hcl |
Create/update policy |
nomad acl policy list |
List policies |
nomad acl policy info dev-policy |
Show policy details |
모니터링 및 디버깅
시스템 정보
Command |
Description |
nomad operator raft list-peers |
List Raft peers |
nomad operator snapshot save backup.snap |
Create snapshot |
nomad operator snapshot restore backup.snap |
Restore snapshot |
관련 기사
Command |
Description |
nomad monitor |
Stream logs |
nomad monitor -log-level=DEBUG |
Debug level logs |
nomad status |
Show cluster status |
작업 사양 예제
웹 서비스
카지노사이트
일괄 작업
카지노사이트
정기 작업
카지노사이트
시스템 작업
카지노사이트
구성 예제
Server 구성
카지노사이트
고객 구성
카지노사이트
고급 기능
제약 및 소유권
카지노사이트
볼륨 관리
카지노사이트
Service Discovery 통합
카지노사이트
최고의 연습
작업 디자인
- ** 리소스 할당 **: 적절한 CPU 및 메모리 제한 설정
- Health Check: 종합 건강 검사 실시
- Graceful Shutdown: SIGTERM 신호를 제대로 처리
- 명세 Logging: 적절한 수준으로 구조화된 로깅
- 명세 ** 구성 **: 템플릿 및 환경 변수 사용
Cluster 관리
- **높은 가용성 **: 여러 서버 노드 배포
- ** 백업 전략 **: 일반 스냅 샷 및 백업
- Monitoring: 클러스터 건강 및 작업 상태 모니터링
- 명세 ** 수용량 계획 **: 리소스 요구 사항 계획
- 명세 보안: ACL 및 TLS 사용
영업 시간
- 롤링 업데이트: Zero Downtime에 대한 업데이트 전략
- **캐리어 배포 **: Canary 배포와 테스트 변경
- ** 자원 감시 **: 모니터 리소스 사용
- 명세 Log Aggregation: 로그 수집
- 명세 Alerting: 중요한 문제에 대한 경고 설정
계정 관리
- ACL Policies: 최소한의 권한 액세스를 구현
- Network Security: 보안 통신을 위한 서비스 메쉬 사용
- ** Secrets Management**: 비밀을 위한 Vault와 통합
- 명세 Image Security: 취약점 스캔 컨테이너 이미지
- 명세 Audit Logging: 수락을 위한 감사 로깅