<commit_before># Agathon Management Service

Centralized web service used for managing your Cassandra configuration.

## Install

1. Build the code with Maven: `mvn clean install`
2. Deploy `target/agathon-manager.war` into your favorite J2EE container, such as JBoss or Tomcat.

## Configuration

Configuration is currently done through system properties.

### Basic Configuration

* `com.brighttag.agathon.database`: the database used for storing Cassandra instance records; one of 
   `sdb` (SimpleDB), `memory` (in-memory store), 'zerg' (BrightTag's Ops Center); defaults to `sdb`.

### Seed Provider Configuration

* `com.brighttag.agathon.seeds.per_datacenter`: the number of seeds per data center returned to the  `AgathonSeedProvider`; defaults to `2`.

### Security Group Management Configuration
* `com.brighttag.agathon.security.group_management_enabled`: set to `true` to enable task that updates a security group with current ring members.
* `com.brighttag.agathon.security.group_name_prefix`: prefix for Agathon/Cassandra security group. Required for
   Security Group Management. If using production AWS account, **must use non-production value for testing**.
* `com.brighttag.agathon.security.group_update_period_seconds`: period between applying security group updates.
* `com.brighttag.agathon.cassandra.gossip_port`: Cassandra gossip port, used to create ingress rules for security group updates.
* `com.brighttag.agathon.security.ssl_gossip_port`: Cassandra SSL gossip port, used to create ingress rules for security group updates.
* `com.brighttag.agathon.security.ring_config_file`: location of file defining the Cassandra rings and their `ssl_enabled` status.

### Provider-Specific Options

#### SimpleDB Backend
* `com.brighttag.agathon.dao.sdb.domain_name`: the name of the SimpleDB domain storing Cassandra instance records.
   Required for SimpleDB. If using production AWS account, **must use non-production value for testing environments**.

#### Zerg Backend
* `com.brighttag.agathon.dao.zerg.region`: the current region in which Agathon is deployed (e.g., "us-east-1"). Required for Zerg support.
* `com.brighttag.agathon.dao.zerg.ring_scope_file`: location of file defining the Cassandra rings and their `scope` (`environment` or `region`).
   Required for Zerg support.
* `com.brighttag.agathon.dao.zerg.manifest_url`: the url to retrieve the Zerg manifest; defaults to `http://localhost:9374/manifest/environment/prod/`.

#### AWS Credentials
* `com.brighttag.agathon.aws.access_key`: your Amazon Web Service Access Key. Required for AWS support (e.g., for SimpleDB or EC2 Security Group Management).
* `com.brighttag.agathon.aws.secret_key`: your Amazon Web Service Secret Key. Required for AWS support (e.g., for SimpleDB or EC2 Security Group Management).

(Zerg is BrightTag's internal ops center. Zerg is not yet open-sourced... but hopefully it will be someday. :)

## Usage<commit_msg>[OPS-729] Fix system properties<commit_after># Agathon Management Service

Centralized web service used for managing your Cassandra configuration.

## Install

1. Build the code with Maven: `mvn clean install`
2. Deploy `target/agathon-manager.war` into your favorite J2EE container, such as JBoss or Tomcat.

## Configuration

Configuration is currently done through system properties.

### Basic Configuration

* `com.brighttag.agathon.database`: the database used for storing Cassandra instance records; one of 
   `sdb` (SimpleDB), `memory` (in-memory store), 'zerg' (BrightTag's Ops Center); defaults to `sdb`.

### Seed Provider Configuration

* `com.brighttag.agathon.seeds.per_datacenter`: the number of seeds per data center returned to the  `AgathonSeedProvider`; defaults to `2`.

### Security Group Management Configuration
* `com.brighttag.agathon.security.group_management_enabled`: set to `true` to enable task that updates a security group with current ring members.
* `com.brighttag.agathon.security.group_name_prefix`: prefix for Agathon/Cassandra security group. Required for
   Security Group Management. If using production AWS account, **must use non-production value for testing**.
* `com.brighttag.agathon.security.group_update_period_seconds`: period between applying security group updates.
* `com.brighttag.agathon.cassandra.gossip_port`: Cassandra gossip port, used to create ingress rules for security group updates.
* `com.brighttag.agathon.cassandra.ssl_gossip_port`: Cassandra SSL gossip port, used to create ingress rules for security group updates.
* `com.brighttag.agathon.cassandra.ring_config_file`: location of file defining the Cassandra rings and their `ssl_enabled` status.

### Provider-Specific Options

#### SimpleDB Backend
* `com.brighttag.agathon.dao.sdb.domain_name`: the name of the SimpleDB domain storing Cassandra instance records.
   Required for SimpleDB. If using production AWS account, **must use non-production value for testing environments**.

#### Zerg Backend
* `com.brighttag.agathon.dao.zerg.region`: the current region in which Agathon is deployed (e.g., "us-east-1"). Required for Zerg support.
* `com.brighttag.agathon.dao.zerg.ring_scope_file`: location of file defining the Cassandra rings and their `scope` (`environment` or `region`).
   Required for Zerg support.
* `com.brighttag.agathon.dao.zerg.manifest_url`: the url to retrieve the Zerg manifest; defaults to `http://localhost:9374/manifest/environment/prod/`.

#### AWS Credentials
* `com.brighttag.agathon.aws.access_key`: your Amazon Web Service Access Key. Required for AWS support (e.g., for SimpleDB or EC2 Security Group Management).
* `com.brighttag.agathon.aws.secret_key`: your Amazon Web Service Secret Key. Required for AWS support (e.g., for SimpleDB or EC2 Security Group Management).

(Zerg is BrightTag's internal ops center. Zerg is not yet open-sourced... but hopefully it will be someday. :)

## Usage
{'fraction_non_alphanumeric': 0.09516513449097719, 'fraction_numerical': 0.004256043581886279, 'mean_word_length': 5.126173096976017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4300042', 'n_tokens_mistral': 1707, 'n_tokens_neox': 1608, 'n_words': 620}