Configurable Settings - Java Static Agent on Linux
How to apply changes to the Controller environment
Changes in the installation.yaml
can be applied by running the install script or the upgrade script. Note that re-running the install script will delete any information that would have been stored previously.
Required fields in installation.yaml
controller.name |
String | This will be the identifier used in the VF Server UI. So, this should be as precise a name as possible, e.g. "UAT Viper" or "Prod App1" |
controller.host |
String | The controller.host is the address that the vFunction Server address with which the Controller will connect. The value needs to start with http:// or https://. The value can be an IP Address or a FQDN |
controller.org_id
|
Strings | Once the Server is installed, the Admin can log into the UI and create the App. In the UI's Install Controller dialog box, the YAML values for the org_id, app_id, client_id and client_secret will be displayed. The values for this YAML file should be copied for the Server UI to here |
controller.type |
String | "java" |
viper.archives |
List of Strings | Path(s) to the App's Binary Archives such as /opt/application/lib/*.jar |
Sample with required fields in installation.yaml
controller:
name: ProdApp
host: http://10.0.0.1
org_id: 111111-1111-1111-1111-111111
app_id: 111111-1111-1111-1111-111111
client_id: 111111-1111-1111-1111-111111
client_secret: 111111-1111-1111-1111-111111
instance_id: Prod
type: java
jolokia_port: 8778
tags:
- prod
- app
client_certificate:
crt: |
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
key: |
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
server_application:
# name:
# include_classes: com.
# allowed_users:
viper:
port: 8090
archives:
- /tmp/vfunction/binaries/*.war
# - /opt/<my-application>/**/*.jar
# - /opt/<my-application>/**/*.
### Supported only for Oracle databases!
stored_procedure:
# db_url:
# db_user:
# db_password:
spring:
custom_context_roots:
# - path/to/custom-conf.xml
# - another-custom-conf.xml
root_bean_classes:
# - a.b.c.Foo
# - a.b.c.Bar
Optional fields in installation.yaml
controller.instance_id
controller:
instance_id: containerized
|
|
controller.tags
controller:
tags:
- prod - web |
|
viper.debug_mode
viper:
debug_mode: true
|
|
viper.jvm_memory_params
viper:
jvm_memory_params: "-Xms300m -Xmx4g -Xss50m"
|
|
Recommended RAM based on Classes in Namespace for Xmx Sizing
The table below can help to set the viper.jvm_memory_params’s Xmx value depending on the number of Classes in the Namespaces of the Application’s Business Logic.
Classes in Namespaces(s) | Recommended RAM |
---|---|
Less than 8k | 2gb |
8k-20k | 4gb |
20k-100k | 8gb |
viper.stored_procedure
Prerequisites for viper.stored_procedure
The following prerequisites are needed for tracking Stored Procedures with vFunction:
- Oracle database using Stored Procedures
- An Oracle database user who has SELECT access to the DBA_DEPENDENCIES table in the Oracle database
As a best practice, create a new user for the purpose of gathering Stored Procedures information for the vFunction Analysis:
- Log into the DB as an Administrator
- Create a new user
- Find-and-replace $USERNAME with the actual Username
- Find-and-replace $PASSWORD with the desired Password
create user $USERNAME identified by "$PASSWORD";
- Grant access to DBA_DEPENDENCIES
- Find-and-replace $USERNAME with the actual Username
grant select on DBA_DEPENDENCIES to $USERNAME;
- The URL to access the Oracle Database from the VF Controller, including the Driver Type used in the DB Connection and whether the connection is made using SIDs or a Service Name
- The Username and Password for the Oracle database user
Settings for viper.stored_procedure
The following settings should be added to the installation.yaml:
|
|
---|---|
viper:
stored_procedure:
jdbc:oracle:thin://@10.0.0.43:15421/XE
### Format displayed: jdbc:oracle:thin://@HOST:PORT/SERVICE_NAME ### If the user is a sysoper or sysdba, use the internal_login parameter: jdbc:oracle:thin://@HOST:PORT/SERVICE_NAME?internal_login=SYSDBA ### Alternate format using SID: jdbc:oracle:thin:@\HOST:PORT:SID ### Alternate format using OCI driver: jdbc:oracle:oci://@DATABASE_NAME db_username: charlotteLee
db_password: c0mpleX!
|
|