Changing Host Tags

To change or edit host tags, you can use the Automation Console, NuoDB Manager, or the default.properties file.

Editing Host Tags Using Automation Console

To edit a tag, click Hosts to display the hosts in your domain and then select the host for which you want to change or set a host tag. Click the Tags tab and then select the Actions menu and choose Add.

This displays the Add Host Tag dialog:

Enter a host tag name and value and click Submit.

The process to change the value for a tag is the same as for adding a tag. It is not necessary to delete the tag first. If you enter the name of an existing tag in the Add Host Tag dialog, it will update the value for that tag.To delete a tag, click on the box next to the tag and then select Delete from the Actions menu.

Editing Host Tags Using NuoDB Manager

To add a tag in NuoDB Manager, use the tags set command. For example:

nuodb [domain] > tags set
Host: ec2-54-165-58-157.compute-1.amazonaws.com
Tag Name: mytag
Tag value: 3

To edit an existing tag, again use the tags set command. To delete a tag in NuoDB Manager, use the tags delete command. For example:

nuodb [domain] > tags delete
Host: ec2-54-165-58-157.compute-1.amazonaws.com
Tag Name: mytag

See Tags for details about the NuoDB Manager tags command.

Editing Host Tags Using default.properties

You can use the default.properties file to add, edit, or delete host tags, using the hostTags property. The format is a comma-separated list of key=value pairs, with each string token being trimmed. It is also possible to specify a key without a value as in "tag" or "tag=". For example:

hostTags = tag1 = val1, tag2, tag3=val3

hostTags = tag1 = val1, tag2=, tag3=val3

For more information, see Host Properties (default.properties).

Modifying the System-Provided Host Tag for Region

The default.properties file in the NuoDB installation contains the region for the host. If the property is not set, then the default_region host tag is used, which has a value of DEFAULT_REGION. You can modify the value for this tag using any of the means above.

Modifying the System-Provided Host Tags for Archive and Journal Locations

Persistent storage for a NuoDB database archive and journal is determined given the system-provided host tags default_archive_base and default_journal_base. You can override one or the other or both of these settings, per host, using the host tags archive_base and journal_base or using database options.