Configuring Container Server - Openstack

  • (4.0)
  • | 783 Ratings |
  • Last Updated June 01, 2017

Container Servers contain Object Servers seen in our OpenStack Object Storage environment. The configuration of this is similar to configuring Account Server.

Getting started

Ensure that you are logged in to your swift virtual machine. To accomplish this, run:

How to achieve it…

As with configuring the Account Server, we follow a similar procedure for Container Server, creating the four different configuration files that correspond to a particular port and an area on our disk.

1. We begin by creating an initial Container Server configuration file for our first
Edit /etc/swift/container-server/1.conf with the following contents:
devices = /srv/1/node
mount_check = false
bind_port = 6011
user = swift
log_facility = LOG_LOCAL2
pipeline = container-server
use = egg:swift#container
vm_test_mode = yes

2. We then use this file to create the remaining three virtual nodes, each with their appropriate unique values, as follows:
cd /etc/swift/container-server
sed -e “s/srv/1/srv/2/” -e “s/601/602/” -e
”s/LOG_LOCAL2/LOG_LOCAL3/” 1.conf | sudo tee -a 2.conf
sed -e “s/srv/1/srv/3/” -e “s/601/603/” -e
”s/LOG_LOCAL2/LOG_LOCAL4/” 1.conf | sudo tee -a 3.conf
sed -e “s/srv/1/srv/4/” -e “s/601/604/” -e
”s/LOG_LOCAL2/LOG_LOCAL5/” 1.conf | sudo tee -a 4.conf

How it works…

What we have accomplished here, is to create the first Container Server node configuration file, which we named as 1.conf, under the /etc/swift/swift-container directory. This defined our Container Server for node 1, which will run on port 6011. We then took this file and made subsequent Container Servers to run on their respective
ports, with a search and replace, using sed. We ended up with four files, under our swift-container configuration directory, which is as shown below:
container-server 1: Port 6011, device /srv/1/node, Log Level LOCAL2
container-server 2: Port 6021, device /srv/2/node, Log Level LOCAL3
container-server 3: Port 6031, device /srv/3/node, Log Level LOCAL4
container-server 4: Port 6041, device /srv/4/node, Log Level LOCAL5

Related Pages:

Openstack Training
Openstack Tutorial

Sample Resume:
Openstack Sample Resumes

Interview Questions:
Openstack Interview Questions

Subscribe For Free Demo

Free Demo for Corporate & Online Trainings. Protection Status
Free Demo Popup -->