apache 6

Apache JMeter 사용해보기, REST API 부하주기 (2)

1) JMeter 설치하기: https://pepega.tistory.com/86 2) REST API 부하주기: https://pepega.tistory.com/87 이전 글에서는 JMeter를 설치하고 실행까지 해봤습니다. 이번 글에서는 JMeter를 사용해서 api endpoint를 호출하고 부하를 주겠습니다! API 정보 사용할 REST API 는 아래와 같습니다. API 정보 https://goose-auth.synology.me/swagger-ui/index.html#/Health-check/healthCheck 관련 소스코드 https://github.com/GHGHGHKO/goose-auth-api-server 부하주기 전 JMeter 세팅하기 Thread Group 세팅하기 Test Pl..

테스트 2023.11.11

Apache JMeter 사용해보기, 설치 (1)

1) JMeter 설치하기: https://pepega.tistory.com/86 2) REST API 부하주기: https://pepega.tistory.com/87 가볍게 사용해보는 정도로 글을 작성했습니다 :) 틀린 내용이 있으면 댓글 달아주세요! 자세한 내용은 JMeter Best Practices를 확인하면 좋습니다! https://jmeter.apache.org/usermanual/best-practices.html 환경 OS : Windows 11 target : 이 글에서는 Rest API를 테스트 합니다. 혹은 아무 주소를 사용해도 됩니다. :) 설치하기 jmeter는 java가 설치되어 있어야 합니다. java 설치 https://docs.aws.amazon.com/corretto/la..

테스트 2023.11.08

Airflow BranchSQLOperator 활용

apache/airflow github commit을 활용했다. https://github.com/apache/airflow/blob/39e395f9816c04ef2f033eb0b4f635fc3018d803/airflow/operators/sql.py#L470 활용한 전체 소스코드는 github에 올렸다. https://github.com/GHGHGHKO/airflow/blob/master/dags/postgres_test.py Airflow에서 제공하는 BranchSQLOperator를 활용한 예제이다. 쿼리의 결과(true or false)에 따라 TAG를 활용 할 수 있다. 추후 이 예시를 통해 테이블 스페이스가 가득 찰 경우 알람 메일이 전송되는 스케줄을 등록 할 것이다. true_branch_o..

Airflow 2022.03.14

Docker Airflow Oracle 활용하기

Apache Airflow, Oracle 공식 문서를 토대로 진행하고자 한다. https://airflow.apache.org/docs/apache-airflow-providers-oracle/stable/index.html https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html 아직 Airflow를 설치하지 않았다면 아래 글을 참고한 뒤 오면 좋다 https://pepega.tistory.com/44 dockerhub에 이미지를 올려뒀다. https://hub.docker.com/r/gudrb963/oracle-airflow 설치 시작 1. docker-compose에 환경변수 추가 _PIP_ADDITIONAL_REQUIREMEN..

Airflow 2022.03.10

Docker Airflow 설치하기

Apache Airflow 공식 문서를 토대로 진행하고자 한다. https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html 로컬에서 진행할 예정이다. 공식 문서에 따르면 프로덕션 환경에서 사용하기 위한 것이 아니라고 나온다. 그래서 추후에 "Kubernetes 기반의 Airflow 활용하기"를 올릴 예정이다. 설치 후 원하고자 하는 활용 방안은 아래와 같다. 1. 테이블 조회 후 일정 수치 이상일 경우 알람 메일 발송 2. 서버 피크시간(09시~18시) 이후 매달 초 다량의 데이터를 메일로 전송 설치 시작 1. docker-compose 파일 설치 curl -LfO 'https://airflow.apache.org/docs/apache..

Airflow 2022.03.09