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
To enable the above, the pserver now requires the full algo_params JSON file to be passed in vs just the algorithm name.
Reordered the arguments to PSshardProvenanceDBclient::connectShard to put shard index first
Fixed bug in AlgoParams JSON parse where the checking of present arguments was being performed incorrectly for algorithms other than the HBOS default
addOptionalCommandLineArg(p, instance, port, "Set the pserver port (default: 5559)");
@@ -89,11 +94,15 @@ struct pserverArgs{
89
94
#ifdef ENABLE_PROVDB
90
95
addOptionalCommandLineArg(p, instance, provdb_addr_dir, "The directory containing the address file written out by the provDB server. An empty string will disable the connection to the global DB. (default empty, disabled)");
91
96
addOptionalCommandLineArg(p, instance, provdb_mercury_auth_key, "Set the Mercury authorization key for connection to the provDB (default \"\")");
97
+
addOptionalCommandLineArg(p, instance, provdb_post_prune, "If enabled the pserver will automatically \"prune\" the provenance database at the end of the run (default: true)");
98
+
addOptionalCommandLineArgWithDefault(p, instance, nprovdb_shards, 1, "Number of provenance database shards. Clients connect to shards round-robin by rank (default 1)");
99
+
addOptionalCommandLineArgWithDefault(p, instance, nprovdb_instances, 1, "Number of provenance database instances. Shards are divided uniformly over instances. (default 1)");
92
100
#endif
93
101
addOptionalCommandLineArg(p, instance, prov_outputpath, "Output global provenance data to this directory. Can be used in place of or in conjunction with the provenance database. An empty string \"\" (default) disables this output");
94
102
addOptionalCommandLineArg(p, instance, model_update_freq, "The frequency in ms at which the global AD model is updated (default 1000ms)");
95
103
addOptionalCommandLineArg(p, instance, model_force_update, "Force the global AD model to be updated every time a worker thread updates its model (default false)");
96
104
105
+
p.addOptionalArg(newADOutlier::AlgoParams::cmdlineParser(instance.algo_params, "-algo_params_file", "Set the filename containing the algorithm name and hyperparameters (ensure consistent with OAD)."));
97
106
init = true;
98
107
}
99
108
return p;
@@ -132,7 +141,7 @@ int main (int argc, char ** argv){
132
141
enableVerboseLogging() = true;
133
142
}
134
143
135
-
PSparamManager param(args.nt, args.ad); //the AD model; independent models for each worker thread that are aggregated periodically to a global model
144
+
PSparamManager param(args.nt, args.algo_params.algorithm); //the AD model; independent models for each worker thread that are aggregated periodically to a global model
136
145
param.enableForceUpdate(args.model_force_update); //decide whether the model is forced to be updated every time a worker updates its model
Copy file name to clipboardExpand all lines: src/core/pserver/PSshardProvenanceDBclient.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ using namespace chimbuko;
8
8
9
9
PSshardProvenanceDBclient::~PSshardProvenanceDBclient(){ disconnect(); } //call disconnect in derived class to ensure derived class is still alive when disconnect is called
10
10
11
-
voidPSshardProvenanceDBclient::connectShard(const std::string &addr_file_dir, int shard, int nshards, int ninstances){
0 commit comments