为什么 Datastore Export API 不支持 Nearline 存储类型?
Why Datastore Export API does not support Nearline storage types?
我们最近使用新的 Datastore Export API.
配置了自动数据存储导出到云存储
很明显,我们想使用 Nearline
个存储桶来存储我们的备份,但是当我们尝试将 Datastore 数据库导出到近线存储桶时,我们收到以下错误:
Caused by: com.google.api.client.http.HttpResponseException: 400 BAD_REQUEST
{
"error": {
"code": 400,
"message": "Bucket xxx-xxx-xxx has storage class NEARLINE which is not supported. Must be one of regional, multi_regional, standard, durable_reduced_availability.",
"errors": [
{
"message": "Bucket xxx-xxx-xxx has storage class NEARLINE which is not supported. Must be one of regional, multi_regional, standard, durable_reduced_availability.",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
我没有在文档中找到任何关于应该使用的 Cloud Storage 存储桶类型的内容。
是文档错误还是服务错误?
这是正确的行为。由于导出写入 GCS 的方式,不支持 Nearline 和 Coldline。
您可以导出为标准,然后 change to nearline after. You can even automate this with a SetStorageClass lifecycle action。
我们最近使用新的 Datastore Export API.
配置了自动数据存储导出到云存储很明显,我们想使用 Nearline
个存储桶来存储我们的备份,但是当我们尝试将 Datastore 数据库导出到近线存储桶时,我们收到以下错误:
Caused by: com.google.api.client.http.HttpResponseException: 400 BAD_REQUEST
{
"error": {
"code": 400,
"message": "Bucket xxx-xxx-xxx has storage class NEARLINE which is not supported. Must be one of regional, multi_regional, standard, durable_reduced_availability.",
"errors": [
{
"message": "Bucket xxx-xxx-xxx has storage class NEARLINE which is not supported. Must be one of regional, multi_regional, standard, durable_reduced_availability.",
"domain": "global",
"reason": "badRequest"
}
],
"status": "INVALID_ARGUMENT"
}
}
我没有在文档中找到任何关于应该使用的 Cloud Storage 存储桶类型的内容。
是文档错误还是服务错误?
这是正确的行为。由于导出写入 GCS 的方式,不支持 Nearline 和 Coldline。
您可以导出为标准,然后 change to nearline after. You can even automate this with a SetStorageClass lifecycle action。