-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRead-me.txt
More file actions
62 lines (48 loc) · 2.43 KB
/
Read-me.txt
File metadata and controls
62 lines (48 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# 조욱희 작성
시나리오 1
1. docker-compose 실행
2. 터미널에서 Scenario 폴더로 이동
3. 다른 터미널 실행
4. docker stats로 도커 자원이 할당이 됐나를 확인
2. python scenario1.py 동적 할당 모듈 실행
5. docker update --memory "1gb" --memory-swap "1gb" exercise exercise 컨테이너 메모리 lgb로 낮춤
6. 다시 콘솔확인
# 이정권 작성
시나리오 2
1. 터미널에서 Scenario 폴더로 이동
2. python scenario2.py 실행
3. 다른 터미널 실행
4. ex)docker stop guest 실행
5. localhost:8761에서 guest 없음을 확인
6. Healthcheck.py에서 docker ps -a 명령어 결과 가져와 parsing
7. 반복적으로 돌면서 이상 징후 캐치
8. Exited 포함된 컨테이너 발견시 컨테이너 재시작
9. localhost:8761에서 guest 다시 연결됨을 확인
# 김승진 작성
시나리오 3
1. 터미널에서 Scenario 폴더로 이동
2. python scenario3.py 실행
3. 다른 터미널 실행
4. docker stop problem 실행 (problem 대신 member, guest도 가능하지만, problem이 고의로 500번대 오류 내기 수월)
5. 웹 메인 페이지에서 새로고침 (problem에 500번대 코드 나오게 함)
6. 정상 작동 확인
시나리오 제외한 서비스 실행 방법
- run_web.sh 실행
- 관리자 권한 얻는 방법
1. member-service에 src -> main -> resources -> data.sql 에 본인 이름, 비밀번호, 이메일로 수정
2. guest-service에 src -> main -> resources -> application.yml 맨 밑 본인 이메일로 수정
- http://localhost → 웹페이지
- http://localhost:8761 → 스프링 유레카 디스커버리 서버
- http://localhost:9411 → 집킨 (분산 추적)
- http://localhost:3000 → 그라파나 (모니터링 시각화)
- http://localhost:9090 → 프로메테우스 (모니터링)
- 그라파나의 경우
1. id = admin, pw = admin으로 접속
2. 비밀번호 변경 skip
3. 좌측 하단 설정(configuration)
4. Add data Source -> Prometheus 더블클릭
5. URL에 http://prometheus:9090 입력
6. 하단의 save & test
7. 좌측 상단의 네모4개 모양의 Dashboard -> import
8. Upload Json -> Grafana 디렉토리의 .json 파일들을 순서대로 하나씩 선택 및 Select a Prometheus Data source 에서 Prometheus 선택
9. 8번이 안될 시 json 파일 대신 4701, 3662를 import via grafana.com에 입력 후 Select a Prometheus Data source 에서 Prometheus 선택