docker2 locust python 으로 로드 테스트가 가능하고 ngrinder 보다 굉장히 심플하고 가볍기도 해서 사용해보았다. 1. 스크립트 작성 class MatchOrderTasks(HttpUser): wait_time = between(1, 2) @task def start(self) : type = self.get_type() id = uuid.uuid4().hex user_id = random.randint(0, 0x7feabb849210) request = self.get_start_request(id, user_id, type) self.client.post('/v1/start', data=json.dumps(request), headers={'Content-Type':'application/json'}) if.. 2021. 4. 20. 서버를 컨테이너로 띄우자 테스트 서버를 이미지로 빌드해 컨테이너로 띄웠던 기억을 되새겨 기록합니다. SpringBoot 기반으로 서버를 띄워보려 합니다. 우선, SpringBoot 애플리케이션을 준비합니다. @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } } Dockerfile 빌드할 이미지를 위해 도커파일을 준비해봅니다. 몇몇 명령어만 설명합니다. FROM openjdk:8-jre LABEL maintainer="younji@tistory.com" RUN cat /usr/share/zoneinfo/Asia/Seoul > /et.. 2020. 6. 12. 이전 1 다음