querysub 0.622.0 → 0.624.0
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": "querysub",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.624.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"node-forge": "https://github.com/sliftist/forge#e618181b469b07bdc70b968b0391beb8ef5fecd6",
|
|
80
80
|
"pako": "^2.1.0",
|
|
81
81
|
"peggy": "^5.0.6",
|
|
82
|
-
"sliftutils": "^1.7.
|
|
82
|
+
"sliftutils": "^1.7.92",
|
|
83
83
|
"socket-function": "^1.2.30",
|
|
84
84
|
"terser": "^5.31.0",
|
|
85
85
|
"typenode": "^6.6.1",
|
|
@@ -76,14 +76,14 @@ function archiveBuilder(bucket: string, overrides: Partial<RemoteConfigBase>) {
|
|
|
76
76
|
// NOTE: Once we add new sources, we need to add something at a new start time in the future so we have time to move the files.
|
|
77
77
|
// TODO: EVENTUALLY, Once we have enough data, instead of restriping, we need to bisect the data. That way we can slowly move over the data instead of trying to rewrite all of our data all at once. However, for the moment, moving all the data is probably fine. On the data center, we should be able to move terabytes of data every hour, so we should be able to handle quite a bit, especially if we have a few days to run the restriping.
|
|
78
78
|
// IMPORTANT! Every time we re-stripe, we need to increment the route version. Otherwise, we could reuse a folder that we previously used that's no longer in sync. which will cause us to resurrect old data, which is very bad. We don't want to do that...
|
|
79
|
-
...stripeSources([ONTARIO, HETZNER], { routeVersion:
|
|
79
|
+
...stripeSources([ONTARIO, HETZNER], { routeVersion: 2 }),
|
|
80
80
|
{ type: "backblaze", url: BACKBLAZE, name: "backblaze" },
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
83
|
]);
|
|
84
84
|
|
|
85
85
|
return createArchives({
|
|
86
|
-
version:
|
|
86
|
+
version: 25,
|
|
87
87
|
sources,
|
|
88
88
|
});
|
|
89
89
|
}
|
package/src/storageSetup.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
process.env.PRODUCTION = "true";
|
|
2
|
-
|
|
3
|
-
//import "./inject";
|
|
2
|
+
import "./inject";
|
|
4
3
|
|
|
5
4
|
// The storage server entry point (see bin/storageserve.js): sets up the CLI args the sliftutils storage server expects, synchronizes our network trust list into its trust store, and runs its CLI.
|
|
6
5
|
|
|
7
6
|
async function main() {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const { getTrustedMachineIds } = await import("./-d-trust/NetworkTrust2");
|
|
8
|
+
let trustedMachineIds = await getTrustedMachineIds();
|
|
9
|
+
let { setTrustedMachines } = await import("sliftutils/storage/remoteStorage/serverConfig");
|
|
10
|
+
await setTrustedMachines({ account: "root", machineIds: trustedMachineIds });
|
|
11
|
+
console.log(`Synchronized ${trustedMachineIds.length} trusted machines`);
|
|
13
12
|
|
|
14
13
|
await import("sliftutils/storage/remoteStorage/storageServerCli");
|
|
15
14
|
}
|