pmcf 6.46.4 → 6.46.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/cluster.mjs +5 -0
- package/src/host.mjs +5 -0
- package/src/services/kea.mjs +20 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "6.46.
|
|
3
|
+
"version": "6.46.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"aggregated-map": "^1.0.11",
|
|
54
54
|
"content-entry-transform": "^1.7.6",
|
|
55
55
|
"ip-utilties": "^3.13.1",
|
|
56
|
-
"npm-pkgbuild": "^22.1.
|
|
57
|
-
"pacc": "^11.
|
|
56
|
+
"npm-pkgbuild": "^22.1.6",
|
|
57
|
+
"pacc": "^11.10.0",
|
|
58
58
|
"package-directory": "^8.2.0",
|
|
59
59
|
"yaml": "^2.9.0"
|
|
60
60
|
},
|
package/src/cluster.mjs
CHANGED
package/src/host.mjs
CHANGED
package/src/services/kea.mjs
CHANGED
|
@@ -134,7 +134,7 @@ export class kea extends CoreService {
|
|
|
134
134
|
{
|
|
135
135
|
family: FAMILY_UNIX,
|
|
136
136
|
path: "/run/kea/ctrl-4"
|
|
137
|
-
}
|
|
137
|
+
}
|
|
138
138
|
/*{
|
|
139
139
|
family: FAMILY_IPV4,
|
|
140
140
|
port: 53005,
|
|
@@ -147,7 +147,7 @@ export class kea extends CoreService {
|
|
|
147
147
|
{
|
|
148
148
|
family: FAMILY_UNIX,
|
|
149
149
|
path: "/run/kea/ctrl-6"
|
|
150
|
-
}
|
|
150
|
+
}
|
|
151
151
|
/*{
|
|
152
152
|
family: FAMILY_IPV6,
|
|
153
153
|
port: 53005,
|
|
@@ -264,18 +264,24 @@ export class kea extends CoreService {
|
|
|
264
264
|
peers: peers
|
|
265
265
|
.sort(sortDescendingByPriority)
|
|
266
266
|
.reduce((a, kea) => {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
267
|
+
if (!kea.host.isCluster) {
|
|
268
|
+
const ctrlAgentEndpoint = kea.endpoint(
|
|
269
|
+
`kea-ha-${family}`
|
|
270
|
+
);
|
|
271
|
+
if (ctrlAgentEndpoint) {
|
|
272
|
+
const i = a.length;
|
|
273
|
+
a.push({
|
|
274
|
+
name: kea.host.name,
|
|
275
|
+
role:
|
|
276
|
+
i === 0
|
|
277
|
+
? "primary"
|
|
278
|
+
: i > 1
|
|
279
|
+
? "backup"
|
|
280
|
+
: "standby",
|
|
281
|
+
url: ctrlAgentEndpoint.url,
|
|
282
|
+
"auto-failover": i <= 1
|
|
283
|
+
});
|
|
284
|
+
}
|
|
279
285
|
}
|
|
280
286
|
return a;
|
|
281
287
|
}, [])
|