小编And*_*eig的帖子

~/.config/gcloud/logs 下日志文件堆积较多

我们注意到,我们的一些 GCE 实例在 /home/deploy/.config/gcloud/logs(“deploy”是我们的应用程序进程运行的用户)下积累了大量日志文件(1.6GB)。看来保存了一个月的日志文件。每隔几秒左右就会创建一个文件。

每个文件如下所示:

2020-12-11 20:52:02,105 DEBUG    root            Loaded Command Group: ['gcloud', 'config', 'config_helper']
2020-12-11 20:52:02,107 DEBUG    root            Running [gcloud.config.config-helper] with arguments: [--format: "json", --verbosity: "none"]
2020-12-11 20:52:02,130 DEBUG    google_auth_httplib2 Making request: GET http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/xxx/?recursive=true
2020-12-11 20:52:02,137 DEBUG    google_auth_httplib2 Making request: GET http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/xxx/token
2020-12-11 20:52:02,157 INFO     root            Display format: "default json"
2020-12-11 20:52:02,159 INFO     ___FILE_ONLY___ {
  "configuration": {
    "active_configuration": "default",
    "properties": {
      "core": {
        "account": "xxx",
        "disable_usage_reporting": "True",
        "project": "xxx",
        "verbosity": "none"
      }
    }
  },
  "credential": {
    "access_token": "xxx", …
Run Code Online (Sandbox Code Playgroud)

google-cloud-platform

1
推荐指数
1
解决办法
503
查看次数

标签 统计

google-cloud-platform ×1