You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Cloud Logging documentation, it's mentioned that app engine flex environment supports the enable_stackdriver_integration: true option that enables PHP apps to not be blocked by network due to sending batch logs to Cloud Logging, but instead sends the batch logs locally to another running daemon. However, testing reveals that this is not supported in the flex runtime ever since using this buildpacks (I can only find evidence that this is supported in the previous docker-based runtime https://github.com/GoogleCloudPlatform/php-docker).
Some questions, requests, and recommendations:
If this is true, please update the documentation to reflect the case that this is not supported in the buildpacks-based flex environment. Otherwise customers may be disappointed by misleading information.
Supporting this flag out of the box may be difficult and cannot be delivered soon, but I think there is a quick workaround that can unblock customers to use this feature very quickly:
Document how to customize the runtime, e.g. supervisord config to run the background logger, something like:
And set the environment variable IS_BATCH_DAEMON_RUNNING=1.
I got this from hacking the https://github.com/GoogleCloudPlatform/php-docker and tested that this works. If this is the right way, Google could document this to be a "supported" customization to enable this feature.
As a customer needing this feature, I can just handle the supervisord config manually for now, but I need support to enable the sysv* extensions from Google, as this can only be delivered via the downloadable runtime at https://dl.google.com/runtimes/*/php/* (
TL;DR: Would Google be able to satisfy the small request to build PHP with --enable-sysv*? If this PHP runtime is also open source, please let me know if I can help contribute to it. (cc: @jama22@kennethye1)
The text was updated successfully, but these errors were encountered:
In the Cloud Logging documentation, it's mentioned that app engine flex environment supports the
enable_stackdriver_integration: true
option that enables PHP apps to not be blocked by network due to sending batch logs to Cloud Logging, but instead sends the batch logs locally to another running daemon. However, testing reveals that this is not supported in the flex runtime ever since using this buildpacks (I can only find evidence that this is supported in the previous docker-based runtime https://github.com/GoogleCloudPlatform/php-docker).Some questions, requests, and recommendations:
IS_BATCH_DAEMON_RUNNING=1
.I got this from hacking the https://github.com/GoogleCloudPlatform/php-docker and tested that this works. If this is the right way, Google could document this to be a "supported" customization to enable this feature.
sysvmsg
,sysvsem
, andsysvshm
(https://github.com/googleapis/google-cloud-php-core/blob/686ffd0bb1328cd2ee963c4444e2ab4b111ba3ba/src/SysvTrait.php#L59). I tested fromphp -i
that the current runtime only supportssysvshm
.As a customer needing this feature, I can just handle the supervisord config manually for now, but I need support to enable the
sysv*
extensions from Google, as this can only be delivered via the downloadable runtime athttps://dl.google.com/runtimes/*/php/*
(buildpacks/pkg/runtime/install.go
Line 201 in e4b3705
TL;DR: Would Google be able to satisfy the small request to build PHP with
--enable-sysv*
? If this PHP runtime is also open source, please let me know if I can help contribute to it. (cc: @jama22 @kennethye1)The text was updated successfully, but these errors were encountered: