레이블이 Cloud인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Cloud인 게시물을 표시합니다. 모든 게시물 표시

2022년 4월 15일 금요일

OpenStack Yoga 클라우드 구성

 Openstack 25번째  Y 릴리즈 Yoga 버전의 클라우드 구성입니다.

각 프로젝트 이름과 어떤 일을 하는 것인지 정리했습니다. 
## OpenStack 기능별 구성요소
서비스프로젝트 코드설명
Identity ServiceKeystone사용자 인증
Compute ServiceNova가상머신 관리
Image ServiceGlance커널 이미지나 디스크이미지와 같은 가상 이미지를 관리

DashboardHorizonWeb브라우저를 통한 GUI 콘솔
Object StorageSwift클라우드 스토리지 AWS S3와 API 호환
Block StorageCinder가상머신이 사용하는 블록스토리지를 관리
Network ServiceNeutron가상 네트워크를 관리 
Load Balancing ServiceOctavia부하분산기능을 제고
Orchestration ServiceHeat가상머신 오케스트레이션을 기능 
Metering ServiceCeilometer과금용 사용량 계측기능을 제공
Database ServiceTrove데이터베이스 자원을 관리 
Container ServiceMagnum콘테이너 관리
Data Processing ServiceSahara데이터 프로세싱 서비스
Bare Metal ProvisioningIronic베어메탈 프로비져닝 
Shared File SystemManila화일 공유 기능 
DNS ServiceDesignateDNS 서버 기능 
Key Manager ServiceBarbican각종 인증키 관리 기능 

2015년 6월 25일 목요일

CentOS 7.x에서 MariaDB 서버 설치

CentOS 7.x에서 MariaDB 서버 설정

  • CentOS 7.x에서 데이터 베이스(DB)를 설치해 보자.

yum으로 mariadb-server 를 설치한다.

[root@localhost ~]# yum -y install maridb-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
...

Complete!

mariaDB 서버 환경을 설정

  • 환경 파일 위치
    /etc/my.cnf
  • 편집기로 화일을 수정하자.
    [root@localhost ~]# vi /etc/my.cnf
[mysqld]
# [mysqld]의 섹션에 문자셋(utf-8) 설정을 추가하자.
character-set-server=utf8

datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd

[mysqld_safe]
...

실행 및 서비스 등록

  • 서비스 실행
    [root@localhost ~]# systemctl start mariadb
  • 서비스 등록
    [root@localhost ~]# systemctl enable mariadb

MariaDB 초기 설정

[root@localhost ~]# mysql_secure_installation
/usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not found

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

# root 패스워드 설정
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

# 익명의 사용자 제거
Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

# 원격지 로그인 금지
Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

# 테스트용 데이터베이스 제거
Remove test database and access to it? [Y/n] y
 - Dropping test database...
  ... Success!
   - Removing privileges on test database...
    ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

# 권한 정보 재설정
Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

동작확인

  • 설치한 MariaDB가 정상동작하는 지 확인해 보자.
    [root@localhost ~]# mysql -u root -p
# 앞에서 설정한 root 비밀번호를 입력하자.
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 16
Server version: 5.5.41-MariaDB MariaDB Server

Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

# 사용자 데이터 베이스를 확인해 보자.
MariaDB [(none)]> select user,host,password from mysql.user;
+------+-----------+-------------------------------------------+
| user | host      | password                                  |
+------+-----------+-------------------------------------------+
| root | localhost | *xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| root | 127.0.0.1 | *xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| root | ::1       | *xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
+------+-----------+-------------------------------------------+
3 rows in set (0.00 sec)

# 데이터베이스 확인 
MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)

MariaDB [(none)]> exit
Bye

2015년 6월 5일 금요일

Docker on CentOS 7.x

CentOS7에서 docker 설치와 사용

docker 설치

yum install -y docker

docker 서비스 시작

systemctl start docker

docker 서비스 활성화

systemctl enable docker

Docker 이미지를 다운로드

docker pull {이미지 이름} : {태그 이름}
  • 다운로드 한 Docker 이미지의 목록을 보려면
docker images

Docker 컨테이너를 작성 / 실행

docker run [옵션] [- name {컨테이너 이름} {이미지 이름} : {태그 이름}] [컨테이너에서 실행하는 명령 인수]
  • 주요 옵션
    • -d : 백그라운드에서 실행 (후술). 기본적으로 컨테이너를 포 그라운드에서 실행하기 위해 Web 서버와 애플리케이션 서버 등 항상 실행하는 컨테이너를 지정합니다.
    • -i : 컨테이너의 표준 입력을 연다. / bin / bash 등으로 컨테이너를 조작 할 때 지정한다.
    • -t : tty (터미널 장치)를 확보한다. / bin / bash 등으로 컨테이너를 조작 할 때 지정.
    • -p : {호스트의 포트 번호} {컨테이너의 포트 번호} : Docker 서버의 호스트와 포트 매핑을 구성

Docker 컨테이너 목록을 검색

docker ps [-a]
  • -a : 정지 중 컨테이너가 표시됩니다.

docker 컨테이너 시작

docker start {컨테이너 이름}

docker 컨테이너 연결

docker attach {컨테이너 이름}

Docker 이미지 생성

docker commit {컨테이너 이름} | {컨테이너 ID} {사용자 이름} /] {이미지 이름}

Docker 컨테이너 삭제

docker rm {컨테이너 이름} | {컨테이너 ID}

Docker 이미지 삭제

docker rmi {이미지 이름} | {이미지 ID}

2015년 3월 15일 일요일

네트워크 어플리케이션 고속화(NFV)

네트워크 어플리케이션 고속화

  • Multicore Networking Stack 이란 NFV환경에서 네트워크 어플리케이션의 성능(퍼포먼스)를 향상 시키기 위한 기술이다.
  • Intel DPDK는멀리코어 프로세서에서 네트워크 패킷을 가속화시킨다.
  • DPDK를 이용하는 이유
    • 기존의 네트워크 패킷을 처리할 때는 Linux에서 네트워크 스택을 이용한다.
    • Linux는 시스템 자원을 이용할때 커널 공간과 사용자 공간을 전환하면서 이루어진다.
    • 이것은 네트워크 스택의 지연(Bottle Neck)으로 작용된다.
    • DPDK는 네트워크 지연을 회피하는 방법을 제공한다.

DPDK의 주요 특징

  • 1코어당 10Mpbs이상의 데이터플레인 처리한다.
  • 이것은 Linux 네트워크 스택보다 10배이상 빠르다.
  • 약 30us이하 지연시간을 가진다.
  • 멀티 코어 CPU의 자원을 효율적으로 사용한다.
  • DPI에서 보다 효과적으로 처리할 수 있다.

2014년 12월 10일 수요일

OpenStack Juno 정리

OpenStack Juno 릴리즈 정리

  • OpenStack은 매해 두번씩 새로운 버전이 릴리즈합니다.(4월, 10월)
  • 최신 안정판: 2014.2 (Juno)
  • 다음 안정판: 2015.1 (Kilo)

Juno (2014.2)

  • Juno는 미국 조지아주 아틀란타시 근교에 지명

  • 개발기간: 2014/5 ~ 2014/10
  • 개발항목: 340개소 이상
  • 버그수정: 약 3200개이상
  • 스택수 : 11개
    • Data Processing (Sahara) 추가
  • 5대 기여사 (Contribution Company)
    • 1. 20% HP
    • 2. 18% RedHat
    • 3. 13% Mirantis
    • 4. 10% Rackspace
    • 5.   8% IBM

OpenStack 정식 스텍 리스트

  • Swift : Object Storage 클라우드 스토리지
  • Nova : Compute 클라우드 컴퓨팅
  • Glance : Image Service 가상머신 템플릿 관리
  • Keystone : Identity 종합 사용자/테넌트등 인증
  • Horizon : Dashboard 사용자 서비스 포털
  • Neutron : Networking 클라우드 네트워크 가상화 관리
  • Cinder : Block Storage 볼륨 스토리지
  • Ceilometer: Telemetry 자원 모니터링, 운영 감시
  • Heat : Orchestration 클라우드 오케스트레이션
  • Trove : Database 클라우드 데이터베이스 DBaaS
  • Sahara : Data Processing 빅데이터 처리

OpenStack 육성 프로젝트

  • Ironic : Baremetal 물리머신 관리
  • Zaqar : Queue service (MQaaS)
  • Barbican : Key management 키 데이터 관리
  • Desinate : DNS service (DNSaaS)
  • Oslo : Common Libraries 각 프로젝트 공통 코드
  • TripleO : Deployment
  • Devstack : 개발자용 OpenStack 설치

Juno에서 추가된 새로운 기능들

  • Nova
    • RBAC
    • Evacuate Host
    • Console 개선
    • Flavor 추가 속성
    • Host metering
  • Glance
    • Image meta data 대응,
    • tag 대응
  • Neutron
    • RBAC
    • DVR/L3-HA
    • IPv6서브넷 대응
    • 프로바이더 네트워크 대응
  • Heat
    • RBAC
    • 스택 페이징
  • Cinder
    • 볼륨 형식 변경
    • 볼륨 확장 속성
    • 볼륨 QoS 속성
  • Keystone
    • RBAC 대응 사용자 환경
    • 사용자/도메인간 룰 추가
  • Trove
    • 증분 백업
  • Sahara
    • 전용 사용자 환경 추가 (Horizon)
    • 프로세스가 실행되는 대상에 대한 링크 추가

2014년 12월 1일 월요일

OPNFV Initial Distribution

OPNFV Distribution

  • OPNFV Support mulitple distributions
    • Ubuntu
    • Redhat (CentOS)
    • Fedora
  • Initial kick start distribution
  • LTM (Long Term Evolution)

Initial Distribution selection

  • Several Project
    • OpenStack
    • ODL (Open Daylight)
    • Infra Set up language support (Puppet, Juju)
    • Plugins Availability
    • Virtual Enviroment
    • Bare metal platform support



Criteria
RHEL
CentOS
Ubuntu
Fedora
Devstack
Release
7
7
14.10
21
Latest
Installer
Packstack
Packstack
JuJu, Fuel
Packstack (RDO), DevStack
Devstack
Support
Yes
Community
Yes
Community
No
Resident Developer





Openstack Release
Juno (RDO), Icehouse (RHEL OSP)
Juno (RDO)
Juno
Icehouse (packaged), Juno (RDO)
Kilo
ODL Release



Hydrogen, Helium (not in repositories)

Installer Languages
Puppet
Puppet
Puppet
Puppet (RDO), bash (Devstack)

Plugins Availability





Ease of Development


Yes


Virtual Environment


Vagrant, Kvm, Docker, LXC etc
Qemu/kvm, Docker, lxc etc

Zero Touch including PXE Boot


Yes (JuJu/MaaS/Cobbler)


Troubleshooting Ease





Long Term Evolution


14.04


Automated Testing Framework Integration


OSTF


Kernel Version
3.10
3.10
3.14 (Realtime Patch)
3.17

Qemu version
2.0
2.0
2.0
2.1