Configurable Settings - Java Dynamic 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
Explanation of the Variable and Key Values | ||
---|---|---|
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" |
agent.disable_jdbc |
Boolean | The default value is "false." The Agent will try to profile the database connection using JDBC-based tracking by default. When set to, "true", the Agent uses an alternate method to profile the database connection for non-JDBC -based tracking. This adjustment is typically made as a troubleshooting step |
agent.disable_spring |
Boolean | The default value is "false." The Agent will try to profile Spring Resources like Singletons, Sessions, Requests, Websockets, etc. by default. When set to, "true", this tracking will be disabled. This adjustment is typically made as a troubleshooting step |
agent.application_server |
String | By default, the value here is set to "other". This value can be used for Uber Jars or Springboot Applications, for example. Other strings that can be used here are weblogic, websphere85, websphere9, liberty, tomcat, wildfly, and payara |
agent.application_java_version |
Integer | By default, the value here is assumed to be "8" if this key is left commented out. Uncomment the key and change the value to "11" or "17" based on the Java version used by the App |
Sample with required fields in installation.yaml
controller:
name: Prod App1
host: http://10.0.0.143
org_id: 3cf59199-0a0a-0a0a-0a0a-7c63ffac776e
app_id: 7b1ab58d-0a0a-0a0a-0a0a-098a113ad721
client_id: 20761b99-0a0a-0a0a-0a0a-94c2e0bc1859
client_secret: 6b5b7bc1-0a0a-0a0a-0a0a-2bd10db75e2f
type: java
instrconf_additions:
inclusions:
# - a.b.c.
exclusions:
# - a.b.c.
tags:
# - tag1
client_certificate:
crt: |
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
key: |
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
server_application:
# name:
# include_classes: com.
# allowed_users:
# new_user_default_password:
agent:
### Disable JDBC DB Tracking ###
disable_jdbc: false
### Disable Spring Tracking ###
disable_spring: false
### Optional application servers: weblogic, websphere85, websphere9, liberty, tomcat, wildfly, payara, other ###
application_server: tomcat
### Indicate the application java version when greater than 8. (optional - default to 8) ###
# application_java_version: 11
override_properties:
# - key=value
Optional fields in installation.yaml
agent.override_properties
agent:
override_properties:
- com.vfunction.runtime.config.aop.xml.db.tracking.enabled=true - com.vfunction.runtime.config.aop.xml.db.tracking.jdbcdriver.enabled=false |
|
controller.client_certificate
controller:
client_certificate:
crt: |
-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- key: |
-----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- |
|
controller.instance_id
controller:
instance_id: containerized
|
|
controller.instrconf_additions
controller:
instrconf_additions:
inclusions:
# - a.b.c. exclusions:
- com.vfunction.newmodule. |
|
controller.tags
controller:
tags:
- applicationName - moduleName |
|
server_application.name
server_application:
name: "OMS Java"
|
|
server_application.include_classes
server_application:
include_classes: "com.vfunction.oms."
|
|
server_application.allowed_users
server_application:
allowed_users: "name@email.com, name2@email.com"
|
|
server_application.new_user_default_password
server_application:
new_user_default_password: "Password1!"
|
|
Global.yaml Settings
Overview
The installation.yaml defines the settings for individual instances. The global.yaml defines the settings for all instances in the environment. The settings in the global.yaml are distinct from the settings in the installation.yaml
Location of Global.yaml
- Root / Sudo Installation: /etc/sysconfig/vfunction/installation/global.yaml
- Sudoless Installation: BASE_DIRECTORY/vfunction/etc/sysconfig/vfunction/installation/global.yaml
Optional Global.yaml Settings
agent.use_java_6_or_7_jre
agent:
use_java_6_or_7_jre: true
|
|
viper.use_machine_java_for_viper
viper:
use_machine_java_for_viper: true
|
|