Skip to content

MEG: Mock Event Generator

MEG is a tool used to insert mock events inside graceDB.

Deployment of the mock-event-generator

To have a local k8s deployment of the mock-event-generator using the locally provided Helm chart:

helm upgrade --install -n default \
    --set storageClassName=local-path \
    --set gracedb.hostAlias.hostname="<hostname>" \
    --set gracedb.hostAlias.ip="<ipaddress>" \
    meg meg
Parameter Name description
storageClassName name of the storage class, in minikube can be omitted while (may be omitted) while in k3s the only availabe storage class is the "local-path" ones
gracedb.hostAlias.ip IP address of graceDB server
gracedb.hostAlias.hostname logical name for gracedb server, this name must be resolved by nameserver
Example of tested configurations
helm upgrade --install -n default \
    --set storageClassName=local-path \
    --set gracedb.hostAlias.hostname="gracedb-dev.ldas.cit" \
    --set gracedb.hostAlias.ip="10.14.150.23" \
    meg meg
helm upgrade --install -n default \
    --set storageClassName=local-path \
    meg meg

To have a local k8s deployment of the mock-event-generator using the locally provided Helm chart:

helm install meg meg
The first command will prompt you your ligo credential that are needed to establish a ssh connection between the container and the repository containers.ligo.org.

make sure that meg contaner is running before to proceed

kubectl get pods meg-0

Clean MEG deployment

#### meg ####
helm uninstall meg
kubectl delete pvc meg-data-meg-0