Container Servers contain Object Servers seen in our OpenStack storage environment. The configuration of this is similar to configuring the Account Server. Account Server lists the available containers on our node. As we are creating a setup where we have four virtual devices available under the one hood, each having its own list of available containers, but running on different ports. These represent the rsync account numbers seen previously, for example, port 6012 is represented by [account6012] within rsync.
Assure that you are logged in to your swift virtual machine. To accomplish this, run:
To gain in-depth knowledge and be on par with practical experience, then explore the OpenStack Training Course. |
In this section, we’re creating four different Account Server configuration files that differ only in the port that the service will run on and the path on our single disk that corresponds to that service on that particular port.
1. We begin by creating an initial Account Server configuration file for our first node. Edit /etc/swift/account-server/1.conf with the following contents:
[DEFAULT]
devices = /srv/1/node mount_check = false bind_port = 6012
user = swift
log_facility = LOG_LOCAL2
[pipeline:main]
pipeline = account-server
[app: account-server] use = egg:swift#account
[account-replicator] vm_test_mode = yes
[account-auditor]
[account-reaper]
2. We then use this file to create the remaining three virtual nodes, each with their appropriate unique values as follows:
cd /etc/swift/account-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
Explore OpenStack Sample Resumes! Download & Edit, Get Noticed by Top Employers! |
What we have accomplished is to create the first Account Server device node, which we named 1. conf, under the /etc/swift/swift-account directory. This defines our Account Server for node 1, which will run on port 6012.
We then took this file and made the subsequent Account Servers run on their respective ports, with a search and replace, using sed.
We ended up with four files, under our swift-account configuration directory, which defined the following services:
account-server 1: Port 6012, device /srv/1/node, Log Level LOCAL2 account-server 2: Port 6022, device /srv/2/node, Log Level LOCAL3 account-server 3: Port 6032, device /srv/3/node, Log Level LOCAL4 account-server 4: Port 6042, device /srv/4/node, Log Level LOCAL5
https://docs.openstack.org/kilo/config-reference/content/account-server-conf.html
Related Pages:
Openstack Tutorial
Interview Questions:
Openstack Interview Questions
Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:
Name | Dates | |
---|---|---|
OpenStack Training | Dec 07 to Dec 22 | View Details |
OpenStack Training | Dec 10 to Dec 25 | View Details |
OpenStack Training | Dec 14 to Dec 29 | View Details |
OpenStack Training | Dec 17 to Jan 01 | View Details |
Ravindra Savaram is a Technical Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.