-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is taking data backups of pvc with velero possible. #1355
Comments
We don't have enough experience with try to apply following configs in CHI, it could affect performance spec:
configuration:
files:
users.d/fsync_medata.xml: |-
<clickhouse>
<profiles><default><fsync_metadata>1</fsync_metadata></default></profiles>
</clickhouse>
config.d/merge_tree_fsync.xml: |-
<clickhouse>
<merge_tree>
<fsync_after_insert>1</fsync_after_insert>
<fsync_part_directory>1</fsync_part_directory>
<min_compressed_bytes_to_fsync_after_fetch>1</min_compressed_bytes_to_fsync_after_fetch>
<min_compressed_bytes_to_fsync_after_merge>1</min_compressed_bytes_to_fsync_after_merge>
<min_rows_to_fsync_after_merge>1</min_rows_to_fsync_after_merge>
</merge_tree>
</clickhouse>
users.d/distributed_fsync.xml: |-
<clickhouse>
<profiles><default>
<fsync_after_insert>1</fsync_after_insert>
<fsync_directories>1</fsync_directories>
</default></profiles>
</clickhouse> Could you notify us and provide manifest for velero, if you will success |
I was able to backup and restore using basic velero configuration . |
You could to try SYSTEM STOP MERGES
SYSTEM STOP REPLICATION FETCHES and SYSTEM START MERGES
SYSTEM START REPLICATION FETCHES when backup complete |
what do you mean by detach engine? I dont use any of these tables engine=Kafka , engine=Nats and engine=RabbitMQ tables also is it
|
i mean execute i don't know about something like SYSTEM STOP MESSAGING BROKER |
I tried to take the backup of pvc's using velero for
Deleted everything and restored the pvc's from backup and the deployed zookeeper and clickhouse (chi) Every thing seems to work fine but when i drop database from the restored cluster the replica paths of tables from zookeeper seems to not get deleted. This leads to to a error when ii try to recreate the same table again. |
@manishtradebyte did you use |
No.. when should i run this after restoring backup? |
How exactly did you make "Deleted everything"? |
basicallu deleted the cluster and pvc's removed the zookeeper deployment and its pvc's. |
@manishtradebyte |
the just restored the pvc's using velero fro noth zk and chi. then i deployed the manifests manually |
In this case, Could you share your clickhouse pod generated manifest in yaml format?
|
|
- mountPath: /var/lib/clickhouse
name: default /var/lib/clickhouse/metadata/ could you share?
Where is your operator installed?
|
operator is installed in the same namespace. I tried to apply restore again and it seems to work. The tables a created and when i drop them i can recreate them as well you can close this issue.if you want. also it would be great if this gets resolved Altinity/clickhouse-backup#860. I am only using velero because clickhouse-backup doesnt work Thanks a lot |
I have a question
Will the data backup taken through velero be enough to to restore ?
Do i need to take special care to maintain consistencty of data to avoid corruption?
The text was updated successfully, but these errors were encountered: