pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

Is it possible to migrate from zookeeper metadata store to etcd?

Open truong-hua opened this issue 2 years ago • 12 comments

What issue do you find in Pulsar docs?

New 2.10.0 pulsar now supported ETCD as metadata store and we would like to migrate current zookeeper to etcd. Is it possible and is there any guidlines existed? Downtime should be acceptable :D

What is your suggestion?

Provide metadatastore migration documents or a tool for doing it.

Do you have any references?

Nope

Would you like to fix this issue?

Nope

Note

  • [X] I have researched my question.

truong-hua avatar May 30 '22 10:05 truong-hua

ping @momo-jun

Anonymitaet avatar May 31 '22 02:05 Anonymitaet

Hi @momo-jun any feedback on this? Thanks!

Anonymitaet avatar Jun 10 '22 02:06 Anonymitaet

Checked this issue with @nodece - it is not supported to migrate exiting metadata from ZooKeeper to ETCD.

momo-jun avatar Jun 10 '22 02:06 momo-jun

@truong-hua Thanks for raising this issue! Does the answer LGTY? Feel free to close this issue if you have more questions.

Anonymitaet avatar Jun 10 '22 06:06 Anonymitaet

I suggest add documentation on how to switch the metadata store from ZK to ETCD/Memory/RockDB.

nodece avatar Jun 10 '22 07:06 nodece

I suggest add documentation on how to switch the metadata store from ZK to ETCD/Memory/RockDB.

Agree. Pulsar will be more portable and less depended on metadata store if we can do it.

truong-hua avatar Jun 10 '22 08:06 truong-hua

I suggest add documentation on how to switch the metadata store from ZK to ETCD/Memory/RockDB.

Make sense. @nodece can you provide more inputs?

momo-jun avatar Jun 14 '22 03:06 momo-jun

The issue had no activity for 30 days, mark with Stale label.

github-actions[bot] avatar Jul 15 '22 02:07 github-actions[bot]

@momo-jun there is a new doc to config etcd as metadata store but there is no document for migrating from a key-value store to another. So this issue is not closed yet.

truong-hua avatar Oct 13 '22 14:10 truong-hua

@truong-hua Yes, the new doc is config etcd as metadatastore, right now we don't support migrating the data from one metadatastore to another.

nodece avatar Oct 13 '22 14:10 nodece

So this issue should not be closed @momo-jun @nodece. Btw, if we can have a document about data structure or scheme of our current metadata on ZK and ETCD. May be people can think about migrating themselves manually, or may be some one can make a tool?

truong-hua avatar Nov 04 '22 02:11 truong-hua

Let me open this issue, right now no plan to support that.

nodece avatar Nov 04 '22 02:11 nodece

So this issue should not be closed

No. This can be closed as won't do. They're totally different storage backends. Such data migration should not be implemented in the Pulsar scope.

Keeping an issue open doesn't mean that it will be implemented. We generally use issues to track actionable tasks, not a wishing list. If an optional improvement doesn't have a concrete proposal and no contributor works on it, it's valueless to keep it open.

tisonkun avatar Nov 14 '22 14:11 tisonkun

@tisonkun can this one be consider as to provide zookeeper metadata scheme structure doc and other like etcd. So the user can try themself to migrate it. I can not do it without deeply knowledge about the metadata scheme. A document about that would help.

truong-hua avatar Jan 19 '23 10:01 truong-hua