【已解决】Doris 冷存储 s3.endpoint 使用

Viewed 24

使用了如下方式创建s3冷存储,假设minio集群地址为192.168.0.1-10

CREATE RESOURCE "cool_minio"
PROPERTIES
(
"type" = "s3",
"s3.endpoint" = "http://192.168.0.1:9280",
"s3.region" = "doris",
"s3.bucket" = "cool",
"s3.root.path" = "cdr/",
"s3.access_key" = "key",
"s3.secret_key" = "secret",
"use_path_style" = "true"
);

这种方式会不会存在单点问题?比如在192.168.0.1宕机时,导致doris 集群冷存储不可用。尝试配置s3.endpoint多个节点地址,都提示错误,是不支持配置多个地址,还是我没写对语法。
我暂时想到的应急方法是手动修改指向其他节点

ALTER RESOURCE 'cool_minio'
PROPERTIES ("s3.endpoint"="http://192.168.0.2:9280");

或者使用 keepalived 方案?

1 Answers

BE上传S3的部分是使用的aws C++ sdk,sdk这里endpoint只能设置一个,所以这里如果minio的endpoint指向的机器挂掉了的话确实会导致这个resource不可用