Cloud Setup Multi-Node Simulation With One Unblu Server
This document describes, how to configure unblu to start the "universe" product from within an ide (eclipse) which - for the browser - behaves as if multiple (separate) cloud nodes would have been deployed.
This greatly helps to test a cloud setup on the developers machine with little effort.
2. Howto configure
2.1. DNS / host file settings
The following DNS (or alternatively /etc/host file) settings are required:
Of course other IPs (instead of 18.104.22.168) can be used as well.
2.2. unblu server configuration
The base configuration enables cluster setup, which is what cloud is configured with:
Two configuration settings are required in addition to the cloud setup to simulate the cluster with one instance. These are available as of unblu version 3.5:
3. Howto Test
In order to start testing, go to https://test-start.unblu.com (co-visitor / agent).
Don't forget to adapt the snippets to https://test-start.unblu.com or alternatively re-direct start.unblu.com to 127.0.0.1 as well.
Etest also supports this kind of setup.
Use https://etest-configuration.unblu.com/properties/etest-singlenode-cloud.properties as your property overlay when starting cloud universe and then start testing using:
Due to the fact, that it is only one server instance, it is currently not possible to simulate certain server side functionalities (i.e. dispatcher connecting to workers to retrieve token informations). Instead of what would happen on real cloud node instances, where remote procedure calls over http are executed, the ide currently does not go over network to communicate between different origin parts.