New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add config parameter to get fog debug loggings #181
Conversation
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/174316536 The labels on this github issue will be updated when the story is started. |
Hi! you should be able to set these environment variables pretty easily on the BOSH VMs in most debug cases... Do you need them to persist through deploys? |
Hi, |
We observe sporadic blocked CC operations related to blobstore. Recent problems happened on worker jobs on api VMs during upload of blobs to Azure blobstore. Enabling fog debug logging would provide a bit more context to understand the issue better. Sporadic = once a week or so on a well used CF foundation (medium sized = 12 api VMs and ~250 cells). With permanently enabled debug logging, we can collect statistics and try to correlate it with the IaaS blobstore logs. Maybe this helps. The workers hang when trying to write to a socket. Might be related to network problems, badly configured timeouts etc. |
Hey @WeiQuan0605 @stephanme, I'm curious if y'all have tried following the steps described in this document: https://community.pivotal.io/s/article/how-to-enable-request-logging-from-cloud-controller-to-external-blobstore?language=en_US |
84a89d9
to
9f716db
Compare
Hi @Gerg, thanks for pointing to this document. @WeiQuan0605 extended the PR so that fog/blobstore logging works on all IaaS including AliCloud (AliCloud requires additional configuration for log path in cc.*.fog_connection). Enabling fog logging manually doesn't really help because regular automated CF updates via bosh (biweekly updates + hotfixes possible at any time) would switch it off again. And as mentioned, we need to hunt a very sporadic problem on Azure. Would it help when we de-couple the fog logging configuration from cc.logging_level, e.g. by introducing a new parameter cc.fog_logging_level? This way we would not change existing CC behavior. Best regards, |
I think it makes sense to break this out into its own property, since operators may want to toggle it independently of the general CC log level. I would argue that this property should be a boolean toggle instead of a log level. The current check on whether the log level is exactly "debug" won't work for other log levels above debug: https://github.com/cloudfoundry/steno#log-levels. Also, I don't think the fog debug logs offer any gradation by log level. I propose something similar to the existing |
* Add env var "DEBUG" to get fog debug loggings on azure * Add env var "EXCON_DEBUG" to get fog debug loggings on S3-Compatible Blobstore type * Add env var "ALIYUN_OSS_SDK_LOG_LEVEL=debug" to get fog debug loggings on Alicloud
9f716db
to
a55f6b4
Compare
Hi @Gerg, thanks for the advice. As you recommended, I added a new boolean property Best regards, |
- To bring in line with `cc.db_logging_level` naming convention - Slightly reorganize cc and worker spec files [#181] Authored-by: Greg Cobb <gcobb@pivotal.io>
Thanks for contributing to the
capi_release
. To speed up the process of reviewing your pull request please provide us with:A short explanation of the proposed change:
We'd like to add environment variable to get more fog debug loggings when cc.logging_level is set to debug.
We opted for a reuse of the variable to keep the config of cc simple.
The documented behaviour of fog is that debug logging is activated when setting the DEBUG env variable of the process, see http://fog.io/about/getting_started.html.
An explanation of the use cases your change solves
After adding the environment variable, we can get more fog debug loggings.
Links to any other associated PRs
I have viewed signed and have submitted the Contributor License Agreement
I have made this pull request to the
develop
branchI have run CF Acceptance Tests on bosh lite
No, I just tested it on several sap landscapes.