Deploy a virtual service on multiple Service Virtualization servers
You may want to deploy the same virtual service on several Service Virtualization Servers.
What do I need to do?
- Create a Java format .properties file in which you list the URLs/endpoints of the Service Virtualization Servers, and the Server logon credentials (user name and password).
- Use the SVConfigurator command line interface to simultaneously perform actions on the virtual service on all of the Service Virtualization Servers on which it is deployed, by providing the path to the .properties file.
To deploy a virtual service on multiple Service Virtualization Servers:
Create a servers.properties file to store the Service Virtualization Server properties. Configure the file according to the Java Properties file format.
For each Server, define the Server management URL and logon credentials (user name and password), as follows:
<server ID1>.username=<user name>
<server ID2>.url=http://<not.secured.server.url:port>/management (No logon credentials are required for an unsecured server.)
where <server ID> is a name you assign to the server.
Deploy the virtual service using SVConfigurator's DEPLOYPROJECT command with the --servers parameter to provide the path to the servers.properties file.
Manage the virtual service simultaneously on all of the Service Virtualization Servers on which it is deployed, using the --servers parameter to indicate the location of the servers.properties file.
You can use the following SVConfigurator commands to perform actions on a virtual service that is deployed on multiple servers:
CHANGEMODE - to change the service mode
- HOTSWAP - to switch the performance model during simulation
- UNLOCK - to unlock a service that is locked by another user
- UNDEPLOY - to undeploy a service deployed on a Service Virtualization Server
Other SVConfigurator commands are used for a single Service Virtualization Server only.
- For details on using the SVConfigurator command line interface, see Manage virtual services from the command line.