This repository contains the tools needed for managing the operations of Common Search. A demo is currently hosted on uidemo.commonsearch.org
Help is welcome! We have a complete guide on how to contribute.
We have an early documentation available for operations.
In a nutshell, 2 components are managed from this repository:
- Our Elasticsearch cluster, using AWS CloudFormation.
- Our Backend, using the Spark EC2 scripts.
Here is how they fit in our current infrastructure:
Running cosr-ops
on your local machine is very simple. You only need to have Python installed.
To enter a virtualenv with all the dependencies available, just use:
make virtualenv
source venv/bin/activate
You will need to create a configs/cosr-ops.prod.json
with the following template:
{
"AWS_STACKNAME": "mystack",
"AWS_REGION": "us-east-1",
"AWS_ZONE": "us-east-1a",
"AWS_SUBNET": "subnet-xxxxxx",
"AWS_VPC": "vpc-xxxxxxx",
"AWS_SECURITYGROUP": "sg-xxxxxxx",
"AWS_KEYNAME": "mykeyname",
"AWS_USER": "root",
"AWS_SPARK_AMI": "ami-668dba0c",
"AWS_SPARK_SPOTBID": "0.1",
"AWS_SPARK_INSTANCETYPE_MASTER": "c4.xlarge",
"AWS_SPARK_INSTANCETYPE_WORKER": "c4.xlarge",
"AWS_SPARK_WORKER_COUNT": 15,
"AWS_SPARK_VERSION": "1.6.0",
"AWS_SPARK_PLACEMENTGROUP": "myplacementgroup",
"SPARK_PATH": "../spark-1.6.0"
}