You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2018/07/25 20:27:28 UTC
[GitHub] jihoonson commented on issue #6036: use S3 as a backup storage for
hdfs deep storage
jihoonson commented on issue #6036: use S3 as a backup storage for hdfs deep storage
URL: https://github.com/apache/incubator-druid/pull/6036#issuecomment-407884331
@drcrallen I believe the goal of this PR is somewhat different from that of moveTask. The moveTask is to move _unused segments_ to somewhere another path in the same deep storage. However, the goal of this PR is to use a secondary deep storage when the primary deep storage is not available for pushing segments. So, the moveTask can be used only for already existing segments in deep storage, but this PR can be used while ingesting data.
@gaodayue thank you for your detailed answers.
> What do you mean by "in sync"? Do you mean all segments pushed to backup storage should be copied back to primary storage eventually? If that's the case, I don't think there is a strong need for it (explained below).
Yes, that's what I meant. I think we're considering different concepts for the term 'backup deep storage'.
In your PR, the backup deep storage is to another deep storage to be used when the primary deep storage is not available for pushing segments. I think this is a concept of allowing multiple instances of deep storage, so that segments can reside in multiple deep storage.
My thought for backup deep storage is a bit different. Druid should switch its deep storage from the primary deep storage to the backup deep storage if the primary deep storage isn't available. Once the deep storage is switched, the old primary deep storage is never accessed (but should be synced once it becomes back to normal) unless the backup deep storage becomes not available.
I think this concept is more appropriate for backup deep storage because, if the deep storage is not available for writing, it highly likely has other problems which can introduce unexpected behaviors to Druid.
In addition, in your backup deep storage, users need to operate two or more deep storage instances unless they use a tool like `restore-hdfs-segment` to periodically consolidate segments stored in multiple deep storage instances. I believe no one wants to do that.
What do you think?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org