Kristina-Pianykh / flink-multinode

Other
0 stars 0 forks source link

refucktor: modularize maven project #9

Closed Kristina-Pianykh closed 3 months ago

Kristina-Pianykh commented 3 months ago

The project structure is now:

├── mama-module
│   ├── pom.xml
│   ├── src
│   │   └── main
│   └── target
│   ├── event
│   │   ├── pom.xml
│   │   ├── src
│   │   └── target
│   ├── java-cep
│   │   ├── pom.xml
│   │   ├── src
│   │   └── target
│   ├── monitoring
│   │   ├── pom.xml
│   │   ├── src
│   │   └── target
│   ├── pom.xml
│   ├── src
│   │   └── main
│   └── target

The purpose is to have the structures of the event module shared among the modules java-cep and monitoring since they both rely on them.

This PR also adds an optional flag to the entrypoint script deploying/run_local so that one can easily set a flag for using inflated or regular trace files.

Usage: run [OPTIONS] INPUT_DIR N [RUN_DURATION]
Deploys configs and runs all nodes.
INPUT_DIR: path to a folder with config_i.json and trace_i.json for each node i
N: number of nodes
RUN_DURATION: sleep time, i.e. expected duration (default is 10m)

Options:
  -i: Flag that enables inflated rates