본문 바로가기

Infra19

Auto Scaling Auto Scaling 자동 확장 기능을 사용하면 instance의 수를 동적으로 늘리거나 줄일 수 있다. 비정상적인 상태의 instance를 감지하면, 해당 인스턴스를 종료하고, 새 인스턴스를 생성하여 고 가용성을 구성할 수 있다. loadbalance가 없어도 auto scaling은 가능하지만 거의 필요하다. 시스템을 편하게 관리하기 위해 사용한다. scale out -> 일정 이상의 시스템을 사용하면 확장 scale in -> 축소 auto scaling은 scale in / out만 사용한다. 자동으로 scale을 in / out 한다. vm 하나의 부하량만 체크 -> 다른 vm의 부하량과 같기 때문에 OS::Heat::AutoScalingGroup 자동 확장 리소스의 그룹을 지정한다. 최소 사.. 2020. 7. 17.
LBaaS를 통한 Loadbalance 1. 확인을 위한 configure-httpd 파일 생성 vi configure-httpd1 #!/bin/bash yum -y install httpd systemctl start httpd systemctl enable httpd echo "WEB1" > /var/www/html/index.html vi configure-httpd2 #!/bin/bash yum -y install httpd systemctl start httpd systemctl enable httpd echo "WEB2" > /var/www/html/index.html 2. Instance 생성 openstack server create --image centos7 --flavor wp --key-name al.. 2020. 7. 13.
NFS를 Cinder로 사용하기 Cinder는 lvm만 사용 가능한데 거기에 nfs를 붙인다. 1. NFS-Server = Controller /dev/vde를 /cinder/nfs에 mount mkfs.xfs /dev/vde mount /dev/vde /cinder/nfs 2. /etc/cinder/cinder.conf enabled_backends = lvm,nfs [nfs] volume_backend_name= nfs volume_driver=cinder.volume.drivers.nfs.NfsDriver nfs_shares_config = /etc/cinder/nfs_shares nfs_sparsed_volumes = true nfs_qcow2_volumes = true nfs_mount_point_base = $state_pa.. 2020. 7. 10.
Swift deivce add 1. 모든 Object 삭제 dashboard에서 그 전에 생성해둔 glance container를 삭제한다. glance container 참조 2020/07/07 - [Infra/프라이빗 클라우드 인프라] - [ Glance with Swift backend ] [ Glance with Swift backend ] 1. cd /usr/share/diskimage-builder/elements/centos7/post-install.d 2. cat 01-enable-service #!/bin/bash systemctl enable httpd 설치 후에 systemctl enable httpd 명령어를 실행하기 위한 01-enable-servi.. suee-b.tistory.com 2. Swift 서비스 .. 2020. 7. 8.