Skip to content

Additional configuration options

Alexander Dean edited this page Aug 8, 2013 · 6 revisions

HOME > SNOWPLOW SETUP GUIDE > Step 1: setup a Collector > Clojure collector setup > Additional configuration options

There are a environment configuration parameters that you may want to consider tailoring to your specific needs. All of them can be accessed via the Edit Configuration dialogue box in the AWS Management Console.

1. Setting the environment to develop or production

You can set an environment mode in the collector to "development" or "production". This can be set via the Elastic Beanstalk UI. Simply select Edit configuration, select the Conatainer tab and scroll down. Enter your desired environment name in Param1 and then select Apply Changes:

Setting the environment to 'development' means you can view the status of the collector on http://{{COLLECTOR URL}}/status. It is set to production by default.

2. Setting the P3P policy header

This can be entered directly into the same dialogue box as the environment name (see 3b i above), but in Param2 rather than Param1.

If it is not set, the P3P policy header defaults to:

policyref="/w3c/p3p.xml", CP="NOI DSP COR NID PSA OUR IND COM NAV STA"

3. Setting the domain name

The domain name can be entered directly into the same dialogue box as the environment name and P3P policy header by entering it into Param3.

Setting the domain name can be useful if you want to make the cookie accessible to other applications on your domain. In our example above, for example, we've setup the collector on collector.snplow.com. If we do not set a domain name, the cookie will default to thsi domain. However, if we set it to .snplow.com, that cookie will be accessible to other applications running on *.snplow.com.

4. Setting the cookie duration

This can be entered into the same dialogue box as the environment name, P3P policy header and domain name, by entering the value in Param4. The value entered should be an integer representing cookie duration measured in days.

If no value is provided, cookies set default to expiring after one year (i.e. 365 days).

5. Auto scaling

Elastic Beanstalk can scale up the number of webservers running the collector to handle spikes in traffic.

Basic settings (minimum and maximum numbers of servers) can be set in the configuration dialogue box, under the Auto Scaling tab.

You can tell Amazon in what circumstances to launch new instances by setting 'triggers'. More details on tuning Elastic Beanstalk can be found [here](http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/using-features.

All done?

You have setup the Clojure collector! You are now ready to setup a tracker.

Return to the setup guide.

HOME > SNOWPLOW SETUP GUIDE > Collectors > Clojure collector setup

Setup Snowplow

  1. [Setup a Collector] (setting-up-a-collector)
  1. [Step 2: Setup a Tracker] (setting-up-a-tracker)
  2. [Step 3: Setup EmrEtlRunner] (setting-up-EmrEtlRunner)
  3. [Step 4: Setup the StorageLoader] (setting-up-storageloader)
  4. [Step 5: Analyze your data!] (Getting started analyzing Snowplow data)

Useful resources

Clone this wiki locally