Compare commits
3 Commits
a67a99f849
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
8b35d3068b | ||
2b18644024 | |||
fbd87e01c5 |
@@ -1,4 +1,5 @@
|
|||||||
# User defined hostname persisted across all sessions, used to keep track of the same user
|
# User defined hostname persisted across all sessions, used to keep track of the same user
|
||||||
|
# Set to $NODE_NAME to use the hostname of the node when running a cluster with Hetzner Cloud CLI
|
||||||
TELEGRAF_HOSTNAME=
|
TELEGRAF_HOSTNAME=
|
||||||
# MongoDB connection string
|
# MongoDB connection string
|
||||||
TELEGRAF_MONGODB_DSN=mongodb://stats_user:%40z%5EVFhN7q%25vzit@tube.kobim.cloud:27107/?authSource=statistics
|
TELEGRAF_MONGODB_DSN=mongodb://stats_user:%40z%5EVFhN7q%25vzit@tube.kobim.cloud:27107/?authSource=statistics
|
||||||
|
@@ -77,8 +77,13 @@ echo "Starting $NUMBER Selenium nodes"
|
|||||||
|
|
||||||
for NB in $(seq 1 "$NUMBER"); do
|
for NB in $(seq 1 "$NUMBER"); do
|
||||||
NODE_NAME="selenium-${HOST}-instance-${NB}"
|
NODE_NAME="selenium-${HOST}-instance-${NB}"
|
||||||
|
|
||||||
|
|
||||||
|
# Replace variables in the environment file
|
||||||
|
TEMP_ENV_FILE=$(mktemp)
|
||||||
|
while IFS= read -r line; do
|
||||||
|
eval "echo \"$line\""
|
||||||
|
done < "$ENV_FILE" > "$TEMP_ENV_FILE"
|
||||||
|
ENV_FILE="$TEMP_ENV_FILE"
|
||||||
|
|
||||||
echo "Starting Selenium node n°$NB"
|
echo "Starting Selenium node n°$NB"
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
|
@@ -1,63 +0,0 @@
|
|||||||
/* global use, db */
|
|
||||||
// MongoDB Playground
|
|
||||||
// To disable this template go to Settings | MongoDB | Use Default Template For Playground.
|
|
||||||
// Make sure you are connected to enable completions and to be able to run a playground.
|
|
||||||
// Use Ctrl+Space inside a snippet or a string literal to trigger completions.
|
|
||||||
// The result of the last command run in a playground is shown on the results panel.
|
|
||||||
// By default the first 20 documents will be returned with a cursor.
|
|
||||||
// Use 'console.log()' to print to the debug output.
|
|
||||||
// For more documentation on playgrounds please refer to
|
|
||||||
// https://www.mongodb.com/docs/mongodb-vscode/playgrounds/
|
|
||||||
use("statistics");
|
|
||||||
|
|
||||||
db.peertube.aggregate([
|
|
||||||
{
|
|
||||||
$set: {
|
|
||||||
player: {
|
|
||||||
$function: {
|
|
||||||
lang: "js",
|
|
||||||
args: ["$player"],
|
|
||||||
body: function (str) {
|
|
||||||
try {
|
|
||||||
return JSON.parse(str);
|
|
||||||
} catch (e) {
|
|
||||||
if (typeof str === "object") {
|
|
||||||
return str;
|
|
||||||
} else {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
peers: {
|
|
||||||
$function: {
|
|
||||||
lang: "js",
|
|
||||||
args: ["$peers"],
|
|
||||||
body: function (str) {
|
|
||||||
try {
|
|
||||||
return JSON.parse(str);
|
|
||||||
} catch (e) {
|
|
||||||
if (typeof str === "object") {
|
|
||||||
return str;
|
|
||||||
} else {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
$out: {
|
|
||||||
db: "statistics",
|
|
||||||
coll: "peertube_ts",
|
|
||||||
timeseries: {
|
|
||||||
timeField: "timestamp",
|
|
||||||
metaField: "tags",
|
|
||||||
granularity: "seconds",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
]);
|
|
BIN
server/peertube data/statistics.peertube_hetzner_default_latency.json
(Stored with Git LFS)
BIN
server/peertube data/statistics.peertube_hetzner_default_latency.json
(Stored with Git LFS)
Binary file not shown.
BIN
server/peertube data/statistics.peertube_hetzner_high_latency.json
(Stored with Git LFS)
BIN
server/peertube data/statistics.peertube_hetzner_high_latency.json
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user