Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
7c7bf1e
fix process garbage function in schedule cron task + dockerfile + pro…
jujusb Jan 30, 2025
21da006
fix profiling trace allocator memory
jujusb Feb 20, 2025
9c05190
fix profiling and log error in compactor
jujusb Feb 20, 2025
9a52835
fix compactor coping file from remote into remote
jujusb Feb 24, 2025
b0584eb
fix compactor metadata traces.json as application/json
jujusb Feb 24, 2025
1297447
fix profiling using env variable
jujusb Feb 24, 2025
b32052b
fix profiling
jujusb Feb 24, 2025
621174d
update node version to LTS + remove docker publish action
jujusb Feb 25, 2025
3a04903
fix dockerfile to remove docker startup bash
jujusb Feb 25, 2025
ca1641a
fix package.json + dockerignore
jujusb Feb 26, 2025
42b91bd
fix DemoCA certificate + docker compose example
jujusb Feb 26, 2025
3fed2c0
Merge pull request #9 from e-ucm/kafka-topic-minio-events
jujusb Mar 3, 2025
681b38f
refactor shasum computation in an utility function
imartinezortiz Mar 6, 2025
e849309
minor refactor
imartinezortiz Mar 6, 2025
de3aa66
rename method to improve readability
imartinezortiz Mar 6, 2025
05e107a
do not eat errors without properly management.
imartinezortiz Mar 6, 2025
b9272f3
fix remoteOutputPath + log debug + state version + remove owners in …
jujusb Mar 10, 2025
0f61add
kafka start in index.js
jujusb Mar 10, 2025
4d49422
remove test2 js
jujusb Mar 10, 2025
e2ed801
insertOrdered via binary search for files state
jujusb Mar 10, 2025
cf36e64
fix logger.info
jujusb Mar 10, 2025
9a65b5a
fix throw error condition
jujusb Mar 10, 2025
552e2c3
bind function processMessage to compactor
jujusb Mar 10, 2025
0d238e5
fix insertOrdered fonction and saveLocalFilesState function using tha…
jujusb Mar 10, 2025
2856d2d
fix version gestion load and save
jujusb Mar 11, 2025
9d63c6b
adding checking version adding a localTempPath to copy minio state.js…
jujusb Mar 11, 2025
6609fca
Merge pull request #14 from e-ucm/newdev
jujusb Mar 11, 2025
8746ec9
fix dev and dev profiling
jujusb Mar 11, 2025
cba4493
fix already consumed
jujusb Mar 18, 2025
e23f074
fix case version = NaN
jujusb Mar 18, 2025
60b3295
fix using index
jujusb Mar 18, 2025
4416888
fix length == 0
jujusb Mar 18, 2025
1408759
.clinic/
jujusb Mar 26, 2025
32d8da9
remove profiling part
jujusb Mar 27, 2025
9e709c0
remove unused functions
jujusb Mar 27, 2025
b5f3047
rethrow errors
jujusb Mar 27, 2025
d60dba0
fix using copy withinMinio to remove state path to output folder path
jujusb Mar 27, 2025
b0c518d
fix as state files as .json + adding metadata to those files
jujusb Apr 1, 2025
ef1e610
fix compactor to distribute trace copying it within minio
jujusb Apr 1, 2025
dc2c683
fix copy from remote
jujusb Apr 1, 2025
d2649b6
fix not found local and remote states
jujusb Apr 11, 2025
81e9561
adding manual and limesurvey activities to compactor
jujusb Jun 18, 2025
8a143b7
update Dockerfile multistages
jujusb Jul 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules/
manual-scripts/
.github
Dockerfile
.dockerignore
*.heapsnapshot
*.log
3 changes: 3 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/node_modules/
/tmp/*
.clinic/

# Config files
config-test.js
*.log
*.heapsnapshot
20 changes: 20 additions & 0 deletions DemoCA.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDSzCCAjOgAwIBAgIUCmGeUFwNiGdJZLwpkevTf29wjrowDQYJKoZIhvcNAQEL
BQAwFjEUMBIGA1UEAwwLRWFzeS1SU0EgQ0EwHhcNMTkwNjI1MTk0NjA4WhcNMjkw
NjIyMTk0NjA4WjAWMRQwEgYDVQQDDAtFYXN5LVJTQSBDQTCCASIwDQYJKoZIhvcN
AQEBBQADggEPADCCAQoCggEBANKAEz3dPmYJvwjhSBssR0jP5JK7CO8iOqzhcqzy
cFb05hr9unPtPS76lrEEkYSgklwW5X4aVTOfqrJkc0RyoLwyYjmPei45xRiFeTfu
FA1cAwbRAriTuOySvp8U0H/J8WDCNrNrhDags9wzbtBZuTJt1UCNYXYJyHMF2NE3
7fO86x3AVW30v0iiHa00ev2Fk5YZkKUYuL0Dv2Ul3SbWFRq3hKjFypkOK+Iur/Ye
wW7XLAoVatOvlFZCmQ+kD59b0L9QCXqDU2odlwzgNrMpczfTyuzJKQyxm0iLJgxW
QvC329dkjyq/5RR7RvWjpjzyAopXMo5ZE4CWgHQz97Rfhv8CAwEAAaOBkDCBjTAd
BgNVHQ4EFgQUNOD0d021fHYcir4UebCMny2eQVAwUQYDVR0jBEowSIAUNOD0d021
fHYcir4UebCMny2eQVChGqQYMBYxFDASBgNVBAMMC0Vhc3ktUlNBIENBghQKYZ5Q
XA2IZ0lkvCmR69N/b3COujAMBgNVHRMEBTADAQH/MAsGA1UdDwQEAwIBBjANBgkq
hkiG9w0BAQsFAAOCAQEAFwfZVGQnd1ReZeL4uyvS2ZVI3U2GYFGrdxOiC+1nt3TG
QF5W+4RN2394Mv1DaUIjtzAuKanR73qyiVjxkFetsSj4dItzbZQBCpRT32E1EHb2
aFXbTJ76JGPHed0wmAdCxA+zlEjKZr7B73sS2GPfSLJw3CsQYMtVSCXLCox4DUrW
yOlF2kgO1OGI4kPbtw+CKWwCh0x0StckYo5tI8MF1U5UBtAXzPJ2pXyuc7t0Hejy
MMKILaiIrqCtK/9BdQWW3iqDhhcLX6VrPb33QNA7PV9UBVAfBPPIejDLSv1aS/X9
SuegPnlhRzBl1PL0zAMlEGI9GR3HruCJoDKo9MlR7g==
-----END CERTIFICATE-----
40 changes: 40 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# ---------------------------------------
# Base
# ---------------------------------------
FROM timbru31/node-alpine-git:22 AS base

WORKDIR /app

# Common dependencies
RUN apk add --no-cache curl ca-certificates bash

FROM base AS deps

COPY --chown=node:node package.json package-lock.json ./
RUN --mount=type=cache,target=/root/.npm npm ci

FROM deps AS dev

RUN npm install -g clinic
RUN chown -R node:node /app/node_modules

USER node
EXPOSE 3050

# Default CMD, can be overridden by docker-compose
CMD [ "npm", "run", "dev" ]

FROM node:22-alpine AS prod

WORKDIR /app

COPY --chown=node:node --from=deps /app/node_modules ./node_modules
COPY --chown=node:node ./src ./src
COPY --chown=node:node ./jsconfig.json ./jsconfig.json

USER node

# Make port 3050 available to the world outside this container
EXPOSE 3050

CMD [ "npm", "start" ]
Empty file modified README.md
100644 → 100755
Empty file.
56 changes: 56 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
version: '3'

services:
simva-trace-allocator:
build: ./
command: [ "npm", "run", "dev" ]
stdin_open: true
tty: true
environment:
#DEBUG
DEBUG: true
#LOG
LOG_LEVEL: debug
LOG_FOLDER: /home/node/logs
#NODE
NODE_ENV: development
NODE_EXTRA_CA_CERTS: /home/node/app/DemoCA.crt
#TRACE ALLOCATOR
CONCAT_EVENT_POLICY: true
BATCH_SIZE: 100
MAX_DELAY: 5min
REFRESH_INTERVAL: 4h
LOCAL_STATE: /data
REMOTE_STATE: state
REMOVE_DRY_RUN: true
GC_INTERVAL: 2h
COPY_INSTEAD_RENAME: true
TRY_RECOVERY: true
#MINIO
MINIO_HOST: minio-api.external.test
MINIO_SSL: true
MINIO_PORT: 443
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: secret
MINIO_BUCKET: traces
MINIO_TOPICS_DIR: kafka-topics
MINIO_TRACES_TOPIC: traces
MINIO_OUTPUTS_DIR: outputs
MINIO_TRACES_FILE: traces.json
#SIMVA API
SIMVA_HOST: simva-api.external.test
SIMVA_PROTOCOL: https
SIMVA_PORT: 443
SIMVA_USER: admin
SIMVA_PASSWORD: password
SIMVA_WAIT_TIME: 10
SIMVA_MAX_RETRIES: 20
#KAFKA
SIMVA_KAFKA_CLIENTID: simva_trace_allocator
SIMVA_KAFKA_BROKER: kafka1.internal.test:9092
SIMVA_KAFKA_GROUPID: simva_trace_allocator
SIMVA_KAFKA_MINIO_TOPIC: minio-events
hostname: simva-trace-allocator.internal.test
volumes:
- ./:/home/node/app
- /home/node/app/node_modules #exclude node_modules
9 changes: 0 additions & 9 deletions docker-startup.sh

This file was deleted.

Empty file modified jsconfig.json
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions logs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore all files in this dir...
*
# ... except for this one.
!.gitignore
Empty file modified manual-scripts/compare-trace-one-folder.sh
100644 → 100755
Empty file.
Empty file modified manual-scripts/compare-trace.sh
100644 → 100755
Empty file.
Empty file modified manual-scripts/concat-json-one-folder.sh
100644 → 100755
Empty file.
Empty file modified manual-scripts/concat-json-parallel.sh
100644 → 100755
Empty file.
Empty file modified manual-scripts/concat-json.sh
100644 → 100755
Empty file.
Empty file modified manual-scripts/convert-json.sh
100644 → 100755
Empty file.
Loading