{"_id":"57c76664c8896b0e00c09870","githubsync":"","parentDoc":null,"project":"56c35c56c0c4630d004e864c","version":{"_id":"56c35c56c0c4630d004e864f","project":"56c35c56c0c4630d004e864c","__v":8,"createdAt":"2016-02-16T17:28:54.864Z","releaseDate":"2016-02-16T17:28:54.864Z","categories":["56c35c57c0c4630d004e8650","56c7b9e5379b311700ed8fe3","56c7bab4606ee717003c4766","56c7bb3613e5400d001e8cbd","56cf3f5a5267d70b00494c4b","56cf3f866c5d7a13005ee894","56fd3956caad892200847bce","599da256e7742b002588bb02"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"0.5.0","version":"0.5"},"__v":3,"category":{"_id":"56c7b9e5379b311700ed8fe3","pages":["56c7ba3853cafe0d00a53daa"],"project":"56c35c56c0c4630d004e864c","version":"56c35c56c0c4630d004e864f","__v":1,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-20T00:57:09.551Z","from_sync":false,"order":2,"slug":"stinger","title":"Stinger"},"user":"571e5ec87983c03600a41643","updates":["57c78af01f59360e00df378a","5afdbb0acdbfdf0003cb8d44"],"next":{"pages":[],"description":""},"createdAt":"2016-08-31T23:21:08.565Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":7,"body":"The following are best practices for setting up your production environments for both a custom augmentor and your custom bidding agent.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"AWS Data Centers\"\n}\n[/block]\nBeeswax is currently located out of **US-EAST-1A**, **US-WEST-2A**, **EU-WEST-1A**, and **AP-NORTHEAST-1A** AWS data centers. When deploying your augmentor or your bidding agent, you should ensure it's located in the same data center as your Beeswax bidder instance for optimal performance.\n\nBy default Beeswax will deploy your custom bidder instance in **US-EAST-1A** with the option of also deploying an additional bidder instances in the other regions. If you have a [Bidding Agent](doc:bidding-agent) or [Augmentator](doc:data-augmentation) in multiple data centers you will need to have an instance of your augmentor and/or bidding agent in each region as well.\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Production Set Up\"\n}\n[/block]\nIn addition to ensuring your augmentor or your bidding agent is located in the same AWS region, we recommend the following high level set up:\n\n1. Utilize Amazon's Elastic Load Balancer (ELB) in front of your augmentor or bidding agent. Using a different load balancer may come with performance and cost risk\n2. Set up DNS on your ELB\n3. Deciding on an EC2 machine type is up to you, but we've found that *M4.2XLarge* machine types perform well for augmentor and bidding agent use cases\n4. Given that you have 10ms timeouts for your augmentor and bidding agent respectively, best practice is to do any lookups in your machine's local cache. Calling out to a separate in-memory data-store like Redis can also typically be done within the 10ms timeout\n5. The programming language you use to build your augmentor or bidding agent is up to you, the only requirement is that it meet the 10ms timeout\n6. Set your server to `Keep Connections Open` so we don't try to reset connections at high rates","excerpt":"","slug":"production-best-practices","type":"basic","title":"Production Best Practices"}

Production Best Practices


The following are best practices for setting up your production environments for both a custom augmentor and your custom bidding agent. [block:api-header] { "type": "basic", "title": "AWS Data Centers" } [/block] Beeswax is currently located out of **US-EAST-1A**, **US-WEST-2A**, **EU-WEST-1A**, and **AP-NORTHEAST-1A** AWS data centers. When deploying your augmentor or your bidding agent, you should ensure it's located in the same data center as your Beeswax bidder instance for optimal performance. By default Beeswax will deploy your custom bidder instance in **US-EAST-1A** with the option of also deploying an additional bidder instances in the other regions. If you have a [Bidding Agent](doc:bidding-agent) or [Augmentator](doc:data-augmentation) in multiple data centers you will need to have an instance of your augmentor and/or bidding agent in each region as well. [block:api-header] { "type": "basic", "title": "Production Set Up" } [/block] In addition to ensuring your augmentor or your bidding agent is located in the same AWS region, we recommend the following high level set up: 1. Utilize Amazon's Elastic Load Balancer (ELB) in front of your augmentor or bidding agent. Using a different load balancer may come with performance and cost risk 2. Set up DNS on your ELB 3. Deciding on an EC2 machine type is up to you, but we've found that *M4.2XLarge* machine types perform well for augmentor and bidding agent use cases 4. Given that you have 10ms timeouts for your augmentor and bidding agent respectively, best practice is to do any lookups in your machine's local cache. Calling out to a separate in-memory data-store like Redis can also typically be done within the 10ms timeout 5. The programming language you use to build your augmentor or bidding agent is up to you, the only requirement is that it meet the 10ms timeout 6. Set your server to `Keep Connections Open` so we don't try to reset connections at high rates