6.2

Table Of Contents
Table 203. Deploy or Update an Application in the CLI (Continued)
CLI Command Description
update-scaleout --deploymentName DeploymentName --
propertiesFile FileName.xml
Initiates an update process to scale a deployed application.
You must create a properties file that defines a new cluster size
value for a node. The following code example defines cluster size
values for the AppServer1 and DBServer1 nodes.
<?xml version="1.0" encoding="UTF-8"?>
<ns1:scaleout-properties
xmlns:ns1="http://www.test.com/darwin/schema/bean
s/api">
<cluster-node>
<name>appserver</name>
<scale-out-by>1</scale-out-by>
</cluster-node>
</ns1:scaleout-properties>
For example, to scale out the Clustered Dukes Bank application,
version 2.1.0 with scaleout properties file, use the command
update-scaleout --deploymentName "appd-Clustered
Dukes Bank App-2.1.0-admin-6-cc0a3b20-43a0-4a22-
be3e-49d4f31ab8e8" --propertiesFile ~/scaleout.xml
Enter update and press the Tab key to display the possible
options for the command. If the list does not display quotation
marks for multiple words with spaces between the words, enclose
the words in quotation marks.
update-config --deploymentName
DeploymentName --
configUpdatePropertiesFile
ConfigUpdatePropertiesFileName.xml
Initiates an update process to modify configurations of existing
services or application components in a deployed application.
You must create a config update properties file to configure an
existing service. The following code example modifies the
global_conf and db_port properties in the vFabric tc Server
service of the AppServer node.
<?xml version="1.0" encoding="UTF-8"?>
<ns1:config-update-properties
xmlns:ns1="http://www.test.com/darwin/schema/bean
s/api">
<node>
<name>load_balancer</name>
<node-component>
<name>Apache_LB</name>
<property>
<key>http_proxy_port</key>
<value>9001</value>
</property>
</node-component>
</node>
</ns1:config-update-properties>
For example, to modify a configuration in the Clustered Dukes
Bank application, version 2.1.0 with configupdate properties
file, use the command update-config --deploymentName
"appd-Clustered Dukes Bank App-2.1.0-
admin-2-19d63535-673e-4766-b380-de4e6ec3676a" --
configUpdatePropertiesFile ~/configupdate.xml
Using Application Services
VMware, Inc. 251