, - , @ . , Amazon Elastic Load Balancer 60- -. .
https://forums.aws.amazon.com/thread.jspa?threadID=33427&start=0&tstart=50
"" , HTTP-. ELB .
, php, , -. , GZIP - (apache ).
script , 64 000 . , , , - .
You also do not need to call this function often. You have 60 seconds, I usually try to make mine work every 10-15 seconds, but since she sleeps for one second, do not call her too often or you will see a significant slowdown on your page.
Here's the function:
function ELB_HeartBeat(){
echo str_repeat(' ',1024*64);
ob_implicit_flush(true);
while ( @ob_end_flush() );
@flush();
@ob_flush();
sleep(1); }
source
share