Compare commits

..

5 Commits

Author SHA1 Message Date
mirko.milovanovic@studenti.unimi.it
8b35d3068b Delete convert-to-ts.js
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m8s
2025-03-30 17:47:17 +00:00
2b18644024 fix: update Peertube statistics JSON files
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled
2025-03-30 19:38:08 +02:00
fbd87e01c5 feat: enhance .env.example with cluster hostname support and update start-nodes.sh to replace environment variables
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m38s
2025-03-30 16:10:33 +02:00
a67a99f849 fix: correct byte conversion logic in convert_to_bytes function
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m58s
2025-03-30 15:27:54 +02:00
6da53a8907 feat: add Peertube statistics JSON files
All checks were successful
Build and Push Docker Image / build (push) Successful in 11m51s
2025-03-23 19:15:48 +01:00
6 changed files with 16 additions and 2 deletions

View File

@@ -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

2
.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
server/peertube[[:space:]]data/statistics.peertube_hetzner_default_latency.json filter=lfs diff=lfs merge=lfs -text
server/peertube[[:space:]]data/statistics.peertube_hetzner_high_latency.json filter=lfs diff=lfs merge=lfs -text

View File

@@ -81,7 +81,7 @@ def setupChromeDriver(command_executor: str | None, webrtc_internals_path: str)
return driver return driver
def convert_to_bytes(down, downUnit): def convert_to_bytes(down, downUnit):
return float(down) * (1024 ** {'B': 0, 'KB': 1, 'MB': 2, 'GB': 3}[downUnit]) return float(down) * (1000 ** {'B': 0, 'KB': 1, 'MB': 2, 'GB': 3}[downUnit])
# Default Plugin Implementations # Default Plugin Implementations
class DefaultStatsSetupPlugin(StatsSetupPlugin): class DefaultStatsSetupPlugin(StatsSetupPlugin):

View File

@@ -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 \

Binary file not shown.

Binary file not shown.