일부 로그 파일을 복사하는 동안의 구성 요소 카운트 0세트 (인 gsutil 구성 명령을 통해 생성 된) 인 gsutil 구성 객체 (rateLimitExceeded 오류)
"errors":[
{
"domain":"usageLimits",
"reason":"rateLimitExceeded",
"message":"The total number of compose requests for this bucket's project exceeds the rate limit. Please reduce the rate of compose requests."
}
],
"code":429,
이러한 객체에 대해 gsutil stat을 수행하면 Component-Count가 972라는 것을 알 수 있습니다.
우리는 짧은 방법으로 이동하는 것을 시도했다 :
gsutil setmeta -h "Component-Count:0" gs://mybucket/PROD/composite.log
을하지만 우리는 히트 :
사실, 복사 였는지를 완전히 그것은 아주 성가신 것이 아니라 있도록 실행CommandException: Invalid or disallowed header (component-count).
Only these fields (plus x-goog-meta-* fields) can be set or unset:
모든 오류를 참조하십시오.
구성 요소 카운트를 0으로 설정하는 방법을 아는 사람이 있습니까?
참고로, 'gsutil cp -D gs : //mybucket/PROD/composite.log gs : // mybucket/PROD/notcompositeanymore.log'를 사용할 수 있습니다. 이것은 정확히'-D'가 설계된 것입니다 - 연결할 필요가 없습니다. – jterrace
[구성 요소 수에 대한 문서] (https://cloud.google.com/storage/docs/composite-objects#_Count)에도 링크 할 수 있습니다. – jterrace
올바른 방법을 지적 해 주셔서 감사합니다. 내 대답을 편집했습니다. –