Skip to content

Commit af2786a

Browse files
authored
Merge pull request #7945 from fstagni/cherry-pick-2-fdbff5614-integration
[sweep:integration] docs: answers to the woke police
2 parents 9081eda + 3ac4c23 commit af2786a

File tree

24 files changed

+147
-147
lines changed

24 files changed

+147
-147
lines changed

docs/source/AdministratorGuide/Introduction/configurationbasics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Most of DIRAC services can be exposed using either the DIPs or the HTTPs protoco
1414

1515
As a general rule, services can be duplicated,
1616
meaning you can have the same service running on multiple hosts, thus reducing the load.
17-
There are only 2 cases of DIRAC services that have a "master/slave" concept, and these are the Configuration Service
17+
There are only 2 cases of DIRAC services that have a "controller/worker" concept, and these are the Configuration Service
1818
and the Accounting/DataStore service.
1919

2020
Same can be said for executors: you can have many residing on different hosts.

docs/source/AdministratorGuide/ServerInstallations/InstallingDiracServer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ operation is the registration of the new host in the already functional Configur
436436

437437
#
438438
# These options define the DIRAC components being installed on "this" DIRAC server.
439-
# The simplest option is to install a slave of the Configuration Server and a
439+
# The simplest option is to install a worker of the Configuration Server and a
440440
# SystemAdministrator for remote management.
441441
#
442442
# The following options defined components to be installed

docs/source/AdministratorGuide/ServerInstallations/scalingAndLimitations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ Services
9090
+--------------------+---------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------------+-----------+
9191
| **System** | **Component** |**Duplicate**| **Remarks** | **HTTPs** +
9292
+--------------------+---------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------------+-----------+
93-
| Accounting | :mod:`DataStore <DIRAC.AccountingSystem.Service.DataStoreHandler>` | PARTIAL | One master and helpers (See :ref:`datastorehelpers`) | +
93+
| Accounting | :mod:`DataStore <DIRAC.AccountingSystem.Service.DataStoreHandler>` | PARTIAL | One controller and helpers (See :ref:`datastorehelpers`) | +
9494
+ +---------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------------+-----------+
9595
| | :mod:`ReportGenerator <DIRAC.AccountingSystem.Service.ReportGeneratorHandler>` | | | +
9696
+--------------------+---------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------------+-----------+
97-
| Configuration | :mod:`Configuration <DIRAC.ConfigurationSystem.Service.ConfigurationHandler>` | PARTIAL | One master (rw) and slaves (ro). It's advised to have several CS slaves | YES +
97+
| Configuration | :mod:`Configuration <DIRAC.ConfigurationSystem.Service.ConfigurationHandler>` | PARTIAL | One controller (rw) and workers (ro). Should have several CS workers | YES +
9898
+--------------------+---------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------------+-----------+
9999
| DataManagement | :mod:`DataIntegrity <DIRAC.DataManagementSystem.Service.DataIntegrityHandler>` | YES | | YES +
100100
+ +---------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------------+-----------+

docs/source/AdministratorGuide/Systems/Configuration/index.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ Configuration System
55
====================
66

77
The configuration system serves the configuration to any other client (be it another server or a standard client).
8-
The infrastructure is master/slave based.
8+
The infrastructure is controller/worker based.
99

10-
******
11-
Master
12-
******
10+
**********
11+
Controller
12+
**********
1313

14-
The master Server holds the central configuration in a local file. This file is then served to the clients, and synchronized with the slave servers.
14+
The controller Server holds the central configuration in a local file. This file is then served to the clients, and synchronized with the worker servers.
1515

16-
the master server also regularly pings the slave servers to make sure they are still alive. If not, they are removed from the list of CS.
16+
the controller server also regularly pings the worker servers to make sure they are still alive. If not, they are removed from the list of CS.
1717

18-
When changes are committed to the master, a backup of the existing configuration file is made in ``etc/csbackup``.
18+
When changes are committed to the controller, a backup of the existing configuration file is made in ``etc/csbackup``.
1919

20-
******
21-
Slaves
22-
******
20+
*******
21+
Workers
22+
*******
2323

24-
Slave server registers themselves to the master when starting.
24+
worker server registers themselves to the controller when starting.
2525
They synchronize their configuration on a regular bases (every 5 minutes by default).
26-
Note that the slave CS do not hold the configuration in a local file, but only in memory.
26+
Note that the worker CS do not hold the configuration in a local file, but only in memory.

docs/source/DeveloperGuide/Overview/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Configuration Service
132132
The Configuration Service is built in the DISET framework to provide static configuration parameters to
133133
all the distributed DIRAC components. This is the backbone of the whole system and necessitates excellent
134134
reliability. Therefore, it is organized as a single master service where all the parameter
135-
updates are done and multiple read-only slave services which are distributed geographically, on VO-boxes
135+
updates are done and multiple read-only worker services which are distributed geographically, on VO-boxes
136136
at Tier-1 LCG sites in the case of LHCb. All the servers are queried by clients in a load balancing way.
137137
This arrangement ensures configuration data consistency together with very good scalability properties.
138138

docs/source/DeveloperGuide/Systems/RequestManagement/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ The agent will try to execute request as a whole in one go.
201201
:alt: Treating of Request in the RequestExecutionAgent.
202202
:align: center
203203

204-
The `RequestExecutingAgent` is using the `ProcessPool` utility to create slave workers (subprocesses running `RequestTask`)
204+
The `RequestExecutingAgent` is using the `ProcessPool` utility to create workers (subprocesses running `RequestTask`)
205205
designated to execute requests read from `ReqDB`. Each worker is processing request execution using following steps:
206206

207207
* downloading and setting up request's owner proxy

src/DIRAC/AccountingSystem/Service/DataStoreHandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
""" DataStore is the service for inserting accounting reports (rows) in the Accounting DB
22
3-
This service CAN be duplicated iff the first is a "master" and all the others are slaves.
3+
This service CAN be duplicated iff the first is a "controller" and all the others are workers.
44
See the information about :ref:`datastorehelpers`.
55
66
.. literalinclude:: ../ConfigTemplate.cfg
@@ -112,7 +112,7 @@ def export_compactDB(self):
112112
"""
113113
Compact the db by grouping buckets
114114
"""
115-
# if we are running slaves (not only one service) we can redirect the request to the master
115+
# if we are running workers (not only one service) we can redirect the request to the master
116116
# For more information please read the Administrative guide Accounting part!
117117
# ADVICE: If you want to trigger the bucketing, please make sure the bucketing is not running!!!!
118118
if self.runBucketing:

src/DIRAC/ConfigurationSystem/Agent/Bdii2CSAgent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def execute(self):
103103
if not result["OK"]:
104104
self.log.warn("Could not download a fresh copy of the CS data", result["Message"])
105105

106-
# Refresh the configuration from the master server
106+
# Refresh the configuration from the controller server
107107
gConfig.forceRefresh(fromMaster=True)
108108

109109
if self.processCEs:

src/DIRAC/ConfigurationSystem/Client/CSAPI.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def initialize(self):
9898
return self.__initialized
9999
retVal = gConfig.getOption("/DIRAC/Configuration/MasterServer")
100100
if not retVal["OK"]:
101-
self.__initialized = S_ERROR("Master server is not known. Is everything initialized?")
101+
self.__initialized = S_ERROR("Controller server is not known. Is everything initialized?")
102102
return self.__initialized
103103
self.__rpcClient = ConfigurationClient(url=gConfig.getValue("/DIRAC/Configuration/MasterServer", ""))
104104
self.__csMod = Modificator(
@@ -915,7 +915,7 @@ def getCurrentCFG(self):
915915
def showDiff(self):
916916
"""Just shows the differences accumulated within the Modificator object"""
917917
diffData = self.__csMod.showCurrentDiff()
918-
gLogger.notice("Accumulated diff with master CS")
918+
gLogger.notice("Accumulated diff with Controller CS")
919919
for line in diffData:
920920
if line[0] in ("+", "-"):
921921
gLogger.notice(line)

src/DIRAC/ConfigurationSystem/Client/CSCLI.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CSCLI(CLI):
4343
def __init__(self):
4444
CLI.__init__(self)
4545
self.connected = False
46-
self.masterURL = "unset"
46+
self.controllerURL = "unset"
4747
self.writeEnabled = False
4848
self.modifiedData = False
4949
self.rpcClient = None
@@ -83,11 +83,11 @@ def _setConnected(self, connected, writeEnabled):
8383
self.writeEnabled = writeEnabled
8484
if connected:
8585
if writeEnabled:
86-
self.prompt = f"({self.masterURL})-{colorize('Connected', 'green')}> "
86+
self.prompt = f"({self.controllerURL})-{colorize('Connected', 'green')}> "
8787
else:
88-
self.prompt = f"({self.masterURL})-{colorize('Connected (RO)', 'yellow')}> "
88+
self.prompt = f"({self.controllerURL})-{colorize('Connected (RO)', 'yellow')}> "
8989
else:
90-
self.prompt = f"({self.masterURL})-{colorize('Disconnected', 'red')}> "
90+
self.prompt = f"({self.controllerURL})-{colorize('Disconnected', 'red')}> "
9191

9292
def do_quit(self, dummy):
9393
"""
@@ -104,7 +104,7 @@ def do_quit(self, dummy):
104104

105105
def _setStatus(self, connected=True):
106106
if not connected:
107-
self.masterURL = "unset"
107+
self.controllerURL = "unset"
108108
self._setConnected(False, False)
109109
else:
110110
retVal = self.rpcClient.writeEnabled()
@@ -118,23 +118,23 @@ def _setStatus(self, connected=True):
118118
self._setConnected(True, False)
119119

120120
def _tryConnection(self):
121-
print(f"Trying connection to {self.masterURL}")
121+
print(f"Trying connection to {self.controllerURL}")
122122
try:
123-
self.rpcClient = ConfigurationClient(url=self.masterURL)
123+
self.rpcClient = ConfigurationClient(url=self.controllerURL)
124124
self._setStatus()
125125
except Exception as x:
126-
gLogger.error("Couldn't connect to master CS server", f"{self.masterURL} ({str(x)})")
126+
gLogger.error("Couldn't connect to controller CS server", f"{self.controllerURL} ({str(x)})")
127127
self._setStatus(False)
128128

129129
def do_connect(self, args=""):
130130
"""
131-
Connects to configuration master server (in specified url if provided).
131+
Connects to configuration controller server (in specified url if provided).
132132
133133
Usage: connect <url>
134134
"""
135135
if not args or not isinstance(args, str):
136-
self.masterURL = gConfigurationData.getMasterServer()
137-
if self.masterURL != "unknown" and self.masterURL:
136+
self.controllerURL = gConfigurationData.getMasterServer()
137+
if self.controllerURL != "unknown" and self.controllerURL:
138138
self._tryConnection()
139139
else:
140140
self._setStatus(False)
@@ -144,7 +144,7 @@ def do_connect(self, args=""):
144144
print("Must specify witch url to connect")
145145
self._setStatus(False)
146146
else:
147-
self.masterURL = splitted[0].strip()
147+
self.controllerURL = splitted[0].strip()
148148
self._tryConnection()
149149

150150
def do_sections(self, args):
@@ -247,7 +247,7 @@ def do_writeToServer(self, dummy):
247247
choice = input("Do you really want to send changes to server? yes/no [no]: ")
248248
choice = choice.lower()
249249
if choice in ("yes", "y"):
250-
print(f"Uploading changes to {self.masterURL} (It may take some seconds)...")
250+
print(f"Uploading changes to {self.controllerURL} (It may take some seconds)...")
251251
response = self.modificator.commit()
252252
if response["OK"]:
253253
self.modifiedData = False

0 commit comments

Comments
 (0)