Created
January 12, 2018 18:57
-
-
Save chingor13/f18392463896d34542b9c480ba3046bb to your computer and use it in GitHub Desktop.
gRPC memory leak sample application for GAE flexible environment
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
env: flex | |
service: protobuf | |
runtime: php | |
manual_scaling: | |
instances: 1 | |
runtime_config: | |
document_root: web | |
resources: | |
cpu: 1 | |
memory_gb: 1 | |
health_check: | |
check_interval_sec: 5 |
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
{ | |
"name": "grpc-memoryleak", | |
"type": "project", | |
"require": { | |
"google/cloud": "^0.49", | |
"google/protobuf": "^3.5", | |
"ext-grpc": "*", | |
"php": "7.1.*" | |
} | |
} |
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 | |
# this file should be web/index.php | |
require_once '../vendor/autoload.php'; | |
use Google\Cloud\Logging\LoggingClient; | |
$loggingClient = new LoggingClient(); | |
echo 'Hello World!'; |
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
location = /_ah/health { | |
try_files $uri /index.php$is_args$args; | |
} |
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
zend_extension=opcache.so | |
opcache.enable=1 | |
extension=grpc.so | |
;extension=protobuf.so | |
realpath_cache_size=4096k | |
realpath_cache_ttl=7200 | |
opcache.max_accelerated_files=10000 | |
;memory_limit=512M |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment