Giter VIP home page Giter VIP logo

r1-devops-project's Introduction

devops-mini-project

devops6

[๐Ÿ”— ๋ฐฐํฌ URL]

๊ฐœ์š”

  • ๐Ÿ“ ++

ํŒ€์› ๊ตฌ์„ฑ

๐Ÿปโ€โ„๏ธ ์ตœ์›๊ทœ ๐Ÿป ์ „์Šน๋ฏผ ๐Ÿฐ ์œค์ฑ„์˜ ๐Ÿจ ์šฐ์ง€์˜ ๐Ÿฏ ๋ฐ•์žฌ๋ฆฐ
nGrinder Controller Nginx proxy nGrinder Agent nGrinder Agent App Server & DB server

1. ํ”„๋กœ์ ํŠธ ๋ชฉํ‘œ

(Top)

2. ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ๋ฐ ๋ฐฐํฌ URL

๊ฐœ๋ฐœ ํ™˜๊ฒฝ

  • Front :
  • Back :
  • ๋ฒ„์ „ ๊ด€๋ฆฌ ๋ฐ ์ด์Šˆ : ๐Ÿ”—
  • ์„œ๋น„์Šค ๋ฐฐํฌ ํ™˜๊ฒฝ : [๐Ÿ”— ]

๋ฐฐํฌ URL

URL : ๐Ÿ”—

3. ๊ฐœ๋ฐœ ๊ธฐ๊ฐ„ ๋ฐ ์ž‘์—… ๊ด€๋ฆฌ

  • ์ „์ฒด ๊ฐœ๋ฐœ ๊ธฐ๊ฐ„ : 2024-02-28 ~ 2024-02-29

์ž‘์—… ๊ด€๋ฆฌ

4.

5. ๊ฐœ๋ฐœํ•˜๋ฉฐ ๊ฒช์€ ์ด์Šˆ

1) WSL ํ™˜๊ฒฝ์—์„œ nGrinder Controller์— ์™ธ๋ถ€ PC์—์„œ agent ์ ‘์† ์ด์Šˆ


๋‚ด์šฉ

  • ํฌํŠธํฌ์›Œ๋”ฉํ•œ nGrinder Controller์— ์™ธ๋ถ€ PC์˜ agent๊ฐ€ ์ ‘์†๋˜์ง€ ์•Š์•˜๋‹ค.

๊ฒฐ๋ก 

  • nGrinder agent๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ 16001 ํฌํŠธ์˜ Controller์— ์ ‘์†ํ•œ๋‹ค.
  • ์™ธ๋ถ€ PC์—์„œ Controller ํŽ˜์ด์ง€์— ์ ‘์†ํ•˜๊ธฐ ์œ„ํ•œ 8080 ํฌํŠธ์™€ agent๊ฐ€ ์ ‘์†ํ•˜๊ธฐ ์œ„ํ•œ 16001 ํฌํŠธ 2๊ฐœ๋ฅผ ํฌํŠธํฌ์›Œ๋”ฉ ํ•ด์ค€๋‹ค.
  • ์™ธ๋ถ€ PC๊ฐ€ ํฌํŠธ์— ์ ‘์†ํ•  ์ˆ˜ ์žˆ๋„๋ก ๋ฐฉํ™”๋ฒฝ ์„ค์ •์ด ์ถ”๊ฐ€์ ์œผ๋กœ ํ•„์š”ํ•˜๋‹ค.

2) nginx test ์˜ค๋ฅ˜


๋‚ด์šฉ

  • JAVA 17 ๋ฒ„์ „์œผ๋กœ nGrinder ๋ฅผ ์‹œ๋„ํ–ˆ์„ ๋•Œ Agent ์‹คํ–‰๊ณผ์ •์—์„œ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒ
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 61

๊ฒฐ๋ก 

  • JAVA 17 ๋ฒ„์ „๊ณผ nGrinder-3.5.9 ๋ฒ„์ „์ด ํ˜ธํ™˜๋˜์ง€ ์•Š์•„ ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ

  • ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• (ํƒ์ผ)

    • JAVA 11๋กœ ๋ฒ„์ „ ๋ฐ”๊พธ๊ธฐ
    • nGrinder-3.5.6์œผ๋กœ ์žฌ์„ค์น˜ ํ›„ ์‹คํ–‰
  • 11๋กœ ๋ฒ„์ „ ๋ฐ”๊พผ ๋’ค ์žฌ๋ถ€ํŒ…


3) nginx-proxy cache ์ ์šฉ ์‹œ ์—๋Ÿฌ ๋ฐœ์ƒ


๋‚ด์šฉ

  • nginx-proxy cache ์„ค์ • ์ ์šฉ ํ›„ nGrinder ํ…Œ์ŠคํŠธ์—์„œ ์—๋Ÿฌ ๋ฐœ์ƒ

๊ฒฐ๋ก 

  • cache๊ฐ€ ์ €์žฅ๋˜๋Š” ๊ฒฝ๋กœ๋ฅผ ์ž˜๋ชป ์„ค์ •ํ•ด์„œ ํ…Œ์ŠคํŠธ๊ฐ€ ๋ถˆ๊ฐ€๋Šฅํ–ˆ์Œ
  • default.conf ํŒŒ์ผ์—์„œ ์˜ฌ๋ฐ”๋ฅธ ๊ฒฝ๋กœ๋ฅผ ์„ค์ •
  • nGrinder(agent, controller server) ๋ฐ proxy server ๋ชจ๋‘ ์žฌ๋ถ€ํŒ… ํ›„ ํ•ด๊ฒฐ๋จ

r1-devops-project's People

Contributors

jaelinny avatar ae-chae avatar choi3179 avatar coffeerlatte avatar

r1-devops-project's Issues

devops team project - Requirements

Requirements

  • ์•„๋ž˜ ๋„์‹๊ณผ ๊ฐ™์ด DB ์™€ ์—ฐ๊ฒฐ๋œ SPRING-BOOT APP-SERVER ์ค€๋น„
  • NGINX PROXY ์„œ๋ฒ„๋Š” ๋ชจ๋“  ์‚ฌ์šฉ์ž ์š”์ฒญ์„ ๋ฐ›์•„ APP-SERVER ๋กœ ์ „๋‹จ ์ค‘๊ณ„ํ•˜๋Š” ๋Œ€๋ฆฌ์ž PROXY ์—ญํ• ์„ ํ•˜๋„๋ก ๊ตฌ์„ฑ
  • ๊ธฐ๋ณธ NGINX ์„ค์ •์œผ๋กœ ์ตœ๋Œ€ TPS ๋ฅผ ๋„์ถœํ•œ๋‹ค.
  • ์ตœ๋Œ€ TPS ์˜ ๊ธฐ์ค€์€ (a) ์—๋Ÿฌ๊ฐ€ ์—†๋Š” ์ƒํƒœ์—์„œ (b) ํ‰๊ท ์‘๋‹ต์†๋„๊ฐ€ ์ดˆ๊ธฐ ๋Œ€๋น„ 1.2 ๋ฐฐ ์ƒ์Šนํ•˜์ง€ ์•Š๋Š” ๋ฒ”์œ„ ์•ˆ์—์„œ (b) 5๋ถ„๊ฐ„ ์œ ์ง€
  • ํ…Œ์ŠคํŠธ ํ™˜๊ฒฝ ๊ตฌ์„ฑ์€ ์—ฌ๋Ÿฌ๋Œ€์˜ ์ปดํ“จํ„ฐ๋ฅผ ๋„คํŠธ์›Œํฌ๋กœ ์—ฐ๊ฒฐํ•˜์—ฌ ๊ตฌ์„ฑํ•˜๋ฉฐ ๊ฐ๊ฐ ๊ตฌ์„ฑ์€ ์•„๋ž˜์™€ ๊ฐ™์Œ
  • ref(A) ๊ฐ€์ด๋“œ๋ฅผ ์ฐธ์กฐํ•˜์—ฌ proxy ๋‹จ์˜ ์บ์‹ฑ์„ ์ ์šฉํ•˜์—ฌ ์„ฑ๋Šฅ์„ ๊ฐœ์„ ํ•˜๊ณ 
  • ๊ฐœ์„  ์ „ํ›„๋ฅผ ๋น„๊ตํ•˜๋Š” ๊ฒฐ๊ณผ ๋ฆฌํฌํŠธ๋ฅผ ์ƒ์„ฑ
  • ๊ฒฐ๊ณผ ๋ฆฌํฌํŠธ์—๋Š” (A) ์ „/ํ›„ ์„ฑ๋Šฅ์ง€ํ‘œ (B) ์บ์‹ฑ์ ์šฉ ๋ฐฉ๋ฒ• (C) ์ข…ํ•ฉ ๋ถ„์„ ๋ฐ ํ•ด์„ ๋‚ด์šฉ์„ ํฌํ•จ
- nGrinder Controller - 1ea
- nGrinder Agent - 1 ~ 2 ea
- nginx proxy - 1ea
- App Server & DB server- 1ea

image

ref

NGRINDER ์ปจํŠธ๋กค๋Ÿฌ - ์—์ด์ „ํŠธ ํ†ต์‹ ์˜ค๋ฅ˜

$ ./run_agent.sh
2024-02-28 15:55:47,411 INFO  agent config: NGRINDER_AGENT_HOME : /home/jelly/.ngrinder_agent
2024-02-28 15:55:47,657 INFO  starter: ***************************************************
2024-02-28 15:55:47,658 INFO  starter:    Start nGrinder Agent ...
2024-02-28 15:55:47,658 INFO  starter: ***************************************************
2024-02-28 15:55:47,658 INFO  starter: JVM server mode is disabled.
2024-02-28 15:55:47,739 INFO  starter: connecting to controller 192.168.0.43:16001
2024-02-28 15:55:47,813 INFO  agent controller daemon: The agent controller daemon is started.
2024-02-28 15:55:47,893 INFO  agent controller: Connected to agent controller server at /192.168.0.43:16001
2024-02-28 15:55:47,893 INFO  agent controller: Waiting for agent controller server signal
2024-02-28 15:55:47,895 INFO  agent controller: agent controller communication is shutdown
2024-02-28 15:55:47,895 ERROR agent controller: Exception whilst sending message. This error is not critical if it doesn't occur much.
2024-02-28 15:55:47,906 ERROR agent controller: Exception whilst sending message. This error is not critical if it doesn't occur much.
2024-02-28 15:55:49,962 INFO  agent controller: Connected to agent controller server at /192.168.0.43:16001
2024-02-28 15:55:49,962 INFO  agent controller: Waiting for agent controller server signal
2024-02-28 15:55:49,981 INFO  agent controller: agent controller communication is shutdown
2024-02-28 15:55:49,986 ERROR agent controller: Exception whilst sending message. This error is not critical if it doesn't occur much.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.