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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.46.4",
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.5",
57
- "pacc": "^11.9.0",
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
@@ -46,6 +46,11 @@ export class cluster extends Host {
46
46
  return new Set(this.masters).union(new Set(this.backups));
47
47
  }
48
48
 
49
+ get isCluster()
50
+ {
51
+ return true;
52
+ }
53
+
49
54
  isMember(host) {
50
55
  return super.isMember(host) || this.hosts.get(host.name) === host;
51
56
  }
package/src/host.mjs CHANGED
@@ -178,6 +178,11 @@ export class Host extends ServiceOwner {
178
178
  return parts[parts.length - 1].toLowerCase();
179
179
  }
180
180
 
181
+ get isCluster()
182
+ {
183
+ return false;
184
+ }
185
+
181
186
  isMember(host) {
182
187
  return this === host;
183
188
  }
@@ -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
- const ctrlAgentEndpoint = kea.endpoint(
268
- `kea-ha-${family}`
269
- );
270
- if (ctrlAgentEndpoint) {
271
- const i = a.length;
272
- a.push({
273
- name: kea.host.name,
274
- role:
275
- i === 0 ? "primary" : i > 1 ? "backup" : "standby",
276
- url: ctrlAgentEndpoint.url,
277
- "auto-failover": i <= 1
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
  }, [])