This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) throws Exception { | |
File temp = File.createTempFile("test", "dat"); | |
final int BUFFER_SIZE_IN_BYTES = 10 * 1024 * 1024; | |
final int MAX_ITEMS_BEFORE_FLUSH = 10000; | |
final int NUMBER_OF_ITEMS = 1000000; | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define("AWS_KEY","YOUR KEY"); | |
define("AWS_SECRET","YOUR SECRET KEY"); | |
define("AWS_REGION","REGION OF THE LOAD BALANCER"); | |
define("ELB_NAME","YOUR ELB NAME"); | |
define("INSTANCE_ID","CURRENT INSTANCE ID - TO BE EXLUCDED FROM THE TEST"); | |
//no cache headers | |
header("Expires: 0"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule YOUR_HEALTH_CHECK_URL$ /aws.php [L] | |
# Only rewrite to index.php if the current request is not for an existing file or directory | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . index.html [L] |