You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/AdministratorGuide/Configuration/ConfReference/Systems/index.rst
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,27 +45,32 @@ However, this approach has limitations in certain scenarios:
45
45
- External servers ("voboxes") running at sites may not be accessible from all clients
46
46
- Connection attempts to inaccessible servers cause errors that, while harmless due to fallback mechanisms, slow down DIRAC and generate misleading error messages
47
47
48
-
To address these issues, you can define a ``PreferredURLPattern`` that identifies a subset of URLs to try first:
48
+
To address these issues, you can define a ``PreferredURLPatterns`` that identifies a subset of URLs to try first:
49
49
50
50
.. code-block:: guess
51
51
52
52
System
53
53
{
54
-
PreferredURLPattern = .*\.main\.invalid/.*
55
54
URLs
56
55
{
57
56
Service = dips://host1.main.invalid:1234/System/Service,dips://host2.main.invalid:1234/System/Service,dips://external.invalid:1234/System/Service
58
57
}
59
58
}
59
+
DIRAC
60
+
{
61
+
PreferredURLPatterns = .*\.main\.invalid/.*
62
+
}
60
63
61
64
In this example:
62
65
63
-
1. The ``PreferredURLPattern`` specifies a regular expression that matches servers in the ``main.invalid`` domain
66
+
1. The ``PreferredURLPatterns`` specifies a regular expression that matches servers in the ``main.invalid`` domain
64
67
2. When connecting to the service, DIRAC will first try URLs matching this pattern (``host1.main.invalid`` and ``host2.main.invalid``)
65
68
3. Only if these preferred servers fail will DIRAC attempt to connect to other servers (``external.invalid``)
66
69
67
70
This approach reduces connection errors and improves performance by prioritizing servers that are more likely to be accessible from the client.
68
71
72
+
.. note:: The ``PreferredURLPatterns`` is a list of regular expressions, not a single regular expression. This allows you to specify multiple patterns to match different subsets of servers if desired.
0 commit comments