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:

  1. 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>.url=https://<secured.server.url:port>/management

    <server ID1>.username=<user name>

    <server ID1>.password=<password>

    <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.

    Example:  

    srv1.url=https://demoserver:6085/management

    srv1.username=admin

    srv1.password=pass1234

    srv2.url=http://localhost:6080/management

  2. Deploy the virtual service using SVConfigurator's DEPLOYPROJECT command with the --servers parameter to provide the path to the servers.properties file.

  3. 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.

See also: