Object Server contains the actual objects seen in our OpenStack Object Storage environment and configuration of this is similar to configuring the Account Server and Container Server.
This is the configuration file used by the object server and other object background services, such as; replicator, updater and auditor.
Ensure that you are logged in to your swift virtual machine. To accomplish this, run:
As with configuring the Container Server, we follow a similar procedure for Object 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 Object Server configuration file for our first node.
Edit /etc/swift/object-server/1.conf with the following contents:
[DEFAULT]
devices = /srv/1/node
mount_check = false
bind_port = 6010
user = swift
log_facility = LOG_LOCAL2
[pipeline:main]
pipeline = object-server
[app:object-server]
use = egg:swift#object
[object-replicator]
vm_test_mode = yes
[object-updater]
[object-auditor]
2. We then use this file to create the remaining three virtual nodes, each specified with their appropriate unique values, as follows:
cd /etc/swift/object-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
What we have accomplished here, is to create the first Object Server node configuration file, which we named 1.conf, under the /etc/swift/swift-container directory. This defined our Object Server for node 1, which will run on port 6010. We then took this file and made subsequent Object Servers run on their respective ports, with a search and replace, using sed. We end up with four files, under our swift-object configuration directory, which defines the following:
object-server 1: Port 6010, device /srv/1/node, Log Level LOCAL2
object-server 2: Port 6020, device /srv/2/node, Log Level LOCAL3
object-server 3: Port 6030, device /srv/3/node, Log Level LOCAL4
object-server 4: Port 6040, device /srv/4/node, Log Level LOCAL5
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 14 to Dec 29 | View Details |
OpenStack Training | Dec 17 to Jan 01 | View Details |
OpenStack Training | Dec 21 to Jan 05 | View Details |
OpenStack Training | Dec 24 to Jan 08 | 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.