]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: Update vstart section in readme.md 61142/head
authorShrish0098 <107606123+Shrish0098@users.noreply.github.com>
Thu, 19 Dec 2024 03:57:56 +0000 (09:27 +0530)
committerZac Dover <zac.dover@proton.me>
Mon, 23 Dec 2024 12:36:58 +0000 (22:36 +1000)
Add guidance about vstart clusters to README.md.

Signed-off-by: Shrish Mishra <shrish409@gmail.com>
README.md

index 56257697e9a1de81ff4efc194cd1d758553152f9..1ca46f364fa6c9e23654f31f5dcd77a62e9d21d8 100644 (file)
--- a/README.md
+++ b/README.md
@@ -126,6 +126,37 @@ To build Ceph, follow this procedure:
 5. Install the vstart cluster:
 
        ninja install
+
+    >vstart.sh is commonly used to quickly deploy a development cluster.
+
+    > [TIPS & TRICKS]
+    >
+    >Use Debug Builds Only When Needed 
+    >
+    >While debugging builds are helpful for development, they can slow down performance.
+    >
+    >Use `-DCMAKE_BUILD_TYPE=Release` when debugging isn't necessary.
+    
+    Enable Selective Daemons if you're testing specific components, don't start unnecessary daemons.
+    Preserve Existing Data skip cluster reinitialization between tests by using the `-n` flag
+
+    > [TROUBLESHOOTING]
+    >
+    >Cluster Fails to Start: Look for errors in the logs under the out/ directory, e.g.
+    >
+    >OSD Crashes: Check the OSD logs for errors.
+    >
+    >Cluster in a Health Error State: Run `ceph status` to identify the issue.
+    >
+    >RocksDB Errors: Look for RocksDB-related errors in OSD logs.
+    
+    To manage a vstart cluster, stop daemons using `./stop.sh` and start them with ./vstart.sh --daemon osd.${ID} [--nodaemonize]. 
+    Restart by stopping and restarting daemons, ensuring no stale sockets. 
+    For RocksDB performance tracking, set `export ROCKSDB_PERF=true` and start the cluster with `./vstart.sh -n -d -x --bluestore`. 
+    Build with `vstart-base` using debug flags in cmake, compile, and deploy via `./vstart.sh -d -n --bluestore`.
+    To containerize, generate configurations with `vstart.sh`, and deploy with Docker, mapping directories and configuring the network.
+    Manage containers using `docker run`, `stop`, and `rm`. For detailed setups, consult the Ceph-Container repository.
+
  
 ### CMake Options