PaaS 221

Redis cli 커맨드 모음

# localhost:6379접속 redis-cli # 원격접속 redis-cli -h redis01.armyost.com -p 6379 # 정보보기 info # help help # 모니터링 monitor # key목록 보기 keys * # 값 입력 String : set {key 이름} {value} List : lpush {key 이름} {value} Set : sadd {key 이름} {value} Hash : hset {key 이름} {value-key} {value-value} # key를 통하여 값 출력 String : get {key 이름} List : lrange {key 이름} {start} -{end} ( ex. lrange test_list 0 -1 ) Set : smembers {..

PaaS/기타 2023.09.01

Redis 설치 Centos7에서

EPEL Repository 설치 yum install epel-release yum을 업데이트 yum update redis를 설치한다. yum install redis redis를 시작 systemctl start redis redis를 자동 시작될 수 있도록 설정 sudo systemctl enable redis 설치가 잘 되었는지 확인 redis-cli ping 방화벽 추가해주고 재시작 $ firewall-cmd --zone=public --add-service=redis --permanent $ firewall-cmd --reload 간단하게 데이터를 입력하고 확인 $ redis-cli redis 접속 set sampleKey sampleValue get sampleKey 외부접속 허용 /etc..

PaaS/기타 2023.08.31

KeyCloak 17버전 Centos7에 설치하기

※ 서버측과 클라이언트 측 모두 keycloak 서비스 URL로 잘 찾아갈 수 있도록 세팅할 것 Keycloak 17.0.1을 설치한다. 설치 wget https://github.com/keycloak/keycloak/releases/download/17.0.1/keycloak-17.0.1.tar.gz 압축 tar -zxf keycloak-17.0.1.tar.gz 환경설정 keycloak-17.0.1폴더 밑 conf/keycloak.conf에서 환경세팅을 할 수 있다. cd conf vi keycloak.conf keycloak.conf파일에 아래와 같이 추가를 하였다. hostname-strict=false // hostname 체크 해지 hostname-strict-https=false keycloa..

PaaS/기타 2023.08.31

PagerDuty에 대해서

총평 처음에는 PagerDuty가 도대체 어떤 제품인지 정확하게 이해하지 못했다. HandsOn을 통해서 이 제품의 컨셉을 정확하게 인지하였다. 모니터링이라는 단어에는 잘 생각해보면 다음의 기능적 요소가 포함되어 있다. ㉠ 모니터링 대상(자원)에 대한 Health Check 지표 확인을 어떻게? ㉡ 이슈가 있을때의 관련자에 알람 및 대응을 어떻게? ㉠ 은 기술에 대한 이야기 이며, ㉡ 은 Management에 대한 이야기 이다. PagerDuty는 ㉠ 에도 일부분 기여할 수는 있다(노이즈감소, AIOpns) . 그런데 PagerDuty의 핵심컨셉은 ㉡ 에 맞추어져 있다. 예를들어, 이슈 알람은 어떤 Escalation Rule을 통해서, 누구에게? 담당자 스케쥴은 어떻게 배정해야하는지? 와 같은것이다. ..

FlieBeat→ES 수집 설정은 어디서 해야 하는지?

수집대상의 FileBeat설정에서 인덱스에 대한 설정을 해줄 수도 있지만, 수집대상이 한두개가 아니면 일일이 세팅, 유지관리 하는것은 불편하다. 따라서 ES에 Index Template을 만들고 해당 Template에 걸리게끔 Filebeat에서 설정해주는게 현명하다. IndexTemplate을 설정하는 방법은 다음과 같다. 가. Index LifeCycle Policy 생성 - Index가 저장되는 Shard 생명주기를 관리하는 정책. Index Template에 해당 정책이 등록되게 되어 있음 나. Index Template 설정 - 서버에서 FileBeat Agent가 수집할때 ElasticSearch에서 정의한 Index Template 정책에 걸리도록 세팅 ※ 이때 was-jpkim* 이런식으로..

PaaS/Data 2023.08.06

ElasticSearch 클러스터 설치하기 3개의 Master, 2개의 Data Node

구성 : 3개의 MasterNode , 2개의 DataNode 20.50 : Data Node(With Master) 20.51 : Data Node(With Master) 20.52 : Kibana(Only Master) 1. OS 파라미터 변경 # vi /etc/sysctl.conf -------------------------------------------------------------------------------- vm.max_map_count=262144 -------------------------------------------------------------------------------- 2. ES 설치파일 받기 $ wget https://artifacts.elastic.co/d..

PaaS/Data 2023.08.06

influxDB influx cli 설치하기

influx cli를 설치해야 계정생성 부터 할수 있는게 많다... 아직 influx는 관리자콘솔 기능이 많이 부재하다. 어쩔수 없이 깔아야 한다. https://docs.influxdata.com/influxdb/v2.7/tools/influx-cli/?t=Linux Install and use the influx CLI | InfluxDB OSS 2.7 Documentation Thank you for your feedback! Let us know what we can do better: docs.influxdata.com Download the influx CLI package.Download from your browserDownload from the command line # amd64 wg..

PaaS/Data 2023.06.26

AWS SaaS Boost 배포하기

(Optional) Deploy the Sample Application Configure AWS SaaS Boost for the Sample Application Just as you would configure AWS SaaS Boost to support the requirements of your application, we must configure the application settings properly for this sample app. This sample application relies on the following configuration in AWS SaaS Boost. AWS SaaS Boost 를 당신의 요구사항에 맞추어 환경설정을 합니다. Sample 어플리케이션은 아래..

PaaS/CI CD 2023.06.22