You are here: Domain Administration > Deploying NuoDB with Amazon Web Services > Setting Host Properties for AWS Deployment > Broker Properties Set By EC2PropertiesProvider

Broker Properties Set By EC2PropertiesProvider

EC2PropertiesProvider is a class in the NuoDB broker that determines default property settings specific to AWS EC2 instances. It is provided as a convenience, but it might not meet all needs. EC2PropertiesProvider searches for settings for broker properties in the following order:

  1. It will set the altAddr property to the public IPV4 address for the EC2 instance and it will set the region property to the AWS region name. These two properties will not be overridden by properties found in steps 2 and 3 below.
  2. It loads the AWS instance user data as if it were a Java properties file. When you launch an instance in Amazon EC2, you have the option of passing user data to the instance. In this way, you can provide property settings in the same format as they would appear in the default.properties file.
  3. If it cannot find a property in either of the above two locations, it looks in the the default $NUODB_HOME/etc/default.properties file.

To specify the use of EC2PropertiesProvider for the broker, you must specify a Java JVM property definition. Do this in the file /etc/nuodb/jvm-options. The jvm-options file contains JVM property definitions for NuoDB Java applications started as services on Linux. See Java JVM Options (jvm-options).

Modify the jvm-options file to set the NUODB_AGENT_JAVA_OPTS property:

NUODB_AGENT_JAVA_OPTS="-DpropertyProvider=EC2PropertiesProvider"