All configuration of guest deployed by vagrant provisioning is in configuration.yml.
Configurable options:
- common – Settings common for all guests
- box, box_url – used Vagrant boxes (using different boxes can cause malfunction of the provisioning)
- provision_on_guest – true value allows to provision guest separately, false will provision all at once but faster
- producer – Producer guest settings
- ip – used address of the guest
- memory – reserved memory (decrease can cause malfunction of the framework)
- cpu – a number of virtual CPUs (decrease can cause malfunction of the framework)
- sparkMaster – Spark master guest settings
- ip – used address of the guest
- memory – reserved memory (decrease can cause malfunction of the framework)
- cpu – a number of virtual CPUs (decrease can cause malfunction of the framework)
- sparkSlave – Slave guests settings (each slave will have the same configuration)
- count – a number of slaves that will be provisioned (max. 155)
- ip_prefix – IP address prefix of slave guests (suffix starts at 101)
- memory – reserved memory (decrease can cause malfunction of the framework)
- cpu – a number of virtual CPUs (decrease can cause malfunction of the framework)
- consumer – Consumer guest settings
- ip – used address of the guest
- memory – reserved memory (decrease can cause malfunction of the framework)
- cpu – a number of virtual CPUs (decrease can cause malfunction of the framework)
vagrant up
– Brings up the whole frameworkvagrant up <guest_name>
– Brings up the guestvagrant halt <guest_name>
– Shutdown the guestvagrant destroy <guest_name>
– Completely delete given guest and its associated resources (virtual hard drives, ...)vagrant provision <guest_name>
– Run Ansible provisioning on the guestvagrant ssh <guest_name>
– Connect to the guest via SSH
Available guest names: producer, sparkMaster, sparkSlave101 ... sparkSlave156, consumer.
Stream4Flow framework confogiration and variables are available in ansible/group_vars/*.
- Templates of configuration files are stored in ansible/roles/<name_of_role>/templates/*