본문 바로가기

카테고리 없음

2021-01-13 22시 개발자 글 모음 | "[MSA] API Gateway - " 외 5개 이야기

GlusterFS & Heketi on Rhel7 설치 1 by 장현정 about Kubernetes

  • 202 gfs-server3" >> /etc/hosts # ssh-keygen으로 키 생성 [root@gfs-server1 ~]# ssh-keygen Generating public/private rsa key pair
  • # heketi 및 gluster 전 노드에 서브스크립션 등록 및 시스템 업데이트 [root@gfs-server1 ~]# subscription-manager register [root@gfs-server1 ~]# subscription-manager attach --pool=8a85f99a752e… [root@gfs-server1 ~]# subscription-manager repos \ --enable=rhel-7-server-rpms \ --enable=rh-gluster-3-for-rhel-7-server-rpms \ --enable=rh-gluster-3-samba-for-rhel-7-server-rpms \ --enable=rh-gluster-3-nfs-for-rhel-7-server-rpms \ --enable=rhel-ha-for-rhel-7-server-rpms [root@gfs-server1 ~]# yum update -y [root@gfs-server1 ~]# reboot
  • # gfs-server1 에 glusterfs 패키지인 redhat-storage-server 설치 및 서비스 시작 [root@gfs-server1 ~]# yum install redhat-storage-server -y [root@gfs-server1 ~]# systemctl enable glusterd


GlusterFS & Heketi on Rhel7 설치 2 by 장현정

  • "/dev/vdc" ] } ] } ] } # heketi-cli 명령어를 이용하여 topology 추가 [root@heketi ~]# heketi-cli topology load --user admin --secret keypassword --json=topology
  • bashrc # heketi-cli 명령어를 통해 클러스터 목록과 노드 목록 확인 [root@heketi ~]# heketi-cli cluster list Clusters: Id:07b117c8766c7e92fa69f6d8bdc2b594 [file][block] [root@heketi ~]# [root@heketi ~]# heketi-cli node list Id:6f82880deb9da92e8a0f15d9b8792222 Cluster:07b117c8766c7e92fa69f6d8bdc2b594 Id:a91826a51c6af6b4690c9b274ec36758 Cluster:07b117c8766c7e92fa69f6d8bdc2b594 Id:c4a803deaf59f8fbcf714452d9eb8f45 Cluster:07b117c8766c7e92fa69f6d8bdc2b594 # heketi-cli node info 명령어를 통해 노드 정보 확인 [root@heketi ~]# heketi-cli node info 6f82880deb9da92e8a0f15d9b8792222 Node Id: 6f82880deb9da92e8a0f15d9b8792222 State: online Cluster Id: 07b117c8766c7e92fa69f6d8bdc2b594 Zone: 1 Management Hostname: gfs-server1 Storage Hostname: 192
  • 200 Devices: Id:7e512134e56ce698bf0e20be626031e5 Name:/dev/vdb State:online Size (GiB):9 Used (GiB):2 Free (GiB):7 Bricks:2 Id:a5ea08039b6003683b9cb24048c25074 Name:/dev/vdc State:online Size (GiB):9 Used (GiB):0 Free (GiB):9 Bricks:0 [root@heketi ~]# # heketi-cli volume create 명령어를 이용해 1GB 볼륨 생성 테스트 [root@heketi ~]# heketi-cli volume create --size=1 Name: vol_f0f23878af47091bc6ee9c88be36f6f9 Size: 1 Volume Id: f0f23878af47091bc6ee9c88be36f6f9 Cluster Id: 07b117c8766c7e92fa69f6d8bdc2b594 Mount: 192


유튜브 API — 18. Bulk Report 주의점 by 안경찬

  • Written by
  • Someone who works at a TV networks lab while enjoying IT development
  • An ordinary person who enjoys photography and music and likes to write thoughts


Mysql Mariadb full-text 풀텍스트 검색 방법 자세히 알아보기 by Ricky Han about SQL

  • like 또는 instr 검색이 아니라 fulltext 인덱스를 생성해서 검색의 속도도 높이고 검색 옵션도 다양하게 이용 할 수 있는 방법을 같이 알아 보겠습니다
  • -- 검색어1 또는 검색어2 (or 검색) SELECT * FROM Table_Name WHERE MATCH(Col_Name) AGAINST('검색어1 검색어2'); -- 검색어 중간에 공백이 들어가는 경우 SELECT * FROM Table_Name WHERE MATCH(Col_Name) AGAINST('"검색어 검색어"'); -- 검색어1을 검색한 결과에서 검색어2가 들어간것을 제외 할 때 SELECT * FROM Table_Name WHERE MATCH(Col_Name) AGAINST('"검색어1" -검색어2' in boolean mode); -- 검색어1
  • 검색어2 함께 검색이 되는 경우 (and 검색) SELECT * FROM Table_Name WHERE MATCH(Col_Name) AGAINST('+"검색어1" +"검색어2"' in boolean mode); -- 검색어1과 검색어2 And 검색과 함께 검색어2의 결과도 함께 출력 SELECT * FROM Table_Name WHERE MATCH(Col_Name) AGAINST('"검색어1" +"검색어2"' in boolean mode);


GlusterFS & Heketi on Rhel7 설치 3 by 장현정 about Kubernetes

  • yml [naleejang@rhel7 glusterfs]$ kubectl get pvc NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE gvol-1 Bound pvc-b466a215-20a2-4e5c-a2e7-9ac1179f5007 1Gi RWX gluster-heketi 40m [naleejang@rhel7 glusterfs]$
  • apps/gfs-client 2/2 2 2 31s NAME READY STATUS RESTARTS AGE pod/gfs-client-6557c98dbd-2kbwv 1/1 Running 0 31s pod/gfs-client-6557c98dbd-cvfjf 1/1 Running 0 31s [naleejang@rhel7 glusterfs]$
  • [naleejang@rhel7 glusterfs]$ kubectl exec -ti pod/gfs-client-6557c98dbd-2kbwv -- bash root@gfs-client-6557c98dbd-2kbwv:/# df -h Filesystem Size Used Avail Use% Mounted on overlay 49G 3


[MSA] API Gateway - 머리부터 발끝까지(1) by 조석훈

  • API Gateway는 API 서버 앞단에서 모든 Request 엔드포인트를 단일화 해주는 역할을 한다
  • 하지만 Zuul은 Spring의 취지(?)와는 맞지 않아 Spring에서는 Spring Cloud Gateway를 만들었다
  • filtering web handler는 모든 GlobalFilter 인스턴스를 추가하고 각각의 경로별 GatewayFilter를 filterChain에 추가한다