Configuring Object Server - OpenStack

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.
syntax 1
This is the configuration file used by the object server and other object background services, such as; replicator, updater and auditor.

Creating an Object Server Configuration file 

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

syntax
To gain in-depth knowledge and be on par with practical experience, then explore  OpenStack Training course.

 

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]

MindMajix Youtube Channel

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

How to create the first Object Server node configuration file

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

Explore OpenStack Sample Resumes! Download & Edit, Get Noticed by Top Employers!  Download Now!

 

  • The three preceding sections have shown us how to configure Account Servers, Object Servers, and Container Servers, each running on their respective ports. These sections all ties up the modules configured in our rsyncd.conf file.

Job Support Program

Online Work Support for your on-job roles.

jobservice

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:

  • Pay Per Hour
  • Pay Per Week
  • Monthly
Learn MoreGet Job Support
Course Schedule
NameDates
OpenStack TrainingNov 19 to Dec 04View Details
OpenStack TrainingNov 23 to Dec 08View Details
OpenStack TrainingNov 26 to Dec 11View Details
OpenStack TrainingNov 30 to Dec 15View Details
Last updated: 03 Apr 2023
About Author

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.

read less
  1. Share:
OpenStack Articles