midarch
Installing & Configuring
1. Download gMidArch
If you are going to use SSL then configure SSL environment variables:
- Configure CA_PATH=<path-to-ca-cert-file>
- Configure CRT_PATH=<path-to-cert-file>
- Configure KEY_PATH=<path-to-cert-key-file>
2. Install FDR4
Experiments
Scenario 1 (gMidArch - RPC)
- Move to GMIDARCH/pkg/apps/artefacts/madls
- Edit 'midfibonacciserver.madl' (set 'Adaptability' to 'None')
- Move to GMIDARCH/pkg/apps/fibomiddleware/naming
- Compile 'go build namingserver.go'
- Start Naming Service: './namingserver'
- Move to GMIDARCH/pkg/apps/fibomiddleware/server
- Compile 'go build server.go'
- Start Fibonacci Server: './server'
- Move to GMIDARCH/pkg/apps/fibomiddleware/client
- Compile 'go build client.go'
- Start Fibonacci: './client '
Scenario 2 (Adaptive gMidArch - RPC)
- Move to GMIDARCH/pkg/apps/artefacts/madls
- Edit 'midfibonacciserver.madl' (set 'Adaptability' to 'Evolutive')
- Move to GMIDARCH/pkg/apps/fibomiddleware/naming
- Compile 'go build naming.go'
- Start Naming Service: './naming'
- Move to GMIDARCH/pkg/apps/fibomiddleware/server
- Compile 'go build server.go'
- Start Fibonacci Server: './server'
- Move to GMIDARCH/pkg/apps/fibomiddleware/client
- Compile 'go build client.go'
- Start Fibonacci Client: './client '
- Move GMIDARCH/pkg/apps/fibomiddleware/injector
- Compile 'go build injector.go'
- Start injector: './injector <time-between-injections (in seconds)>'