Skip to content
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

Use microceph instead of hostpath storage #115

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

sed-i
Copy link
Contributor

@sed-i sed-i commented Jun 17, 2024

Issue

Currently (after #111), the microk8s ha cloud init script uses hostpath storage, which is not what we recommend.

Solution

Update the reference deployment to use distributed storage.

Context

Testing Instructions

Upgrade Notes

microceph cluster bootstrap
# Set the replication to 2x and make the failure domain OSD instead of HOST, so that we only
# need 2 min OSDs, not 2 hosts, to spread data across.
microceph.ceph config set global osd_pool_default_size 2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replication factor

# need 2 min OSDs, not 2 hosts, to spread data across.
microceph.ceph config set global osd_pool_default_size 2
microceph.ceph config set osd osd_crush_chooseleaf_type 0
microceph disk add loop,20G,2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

number of osds
should have repl. fact. <= osds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant