]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc/dev/cephadm: Note regarding network calls form CLI handlers
authorSebastian Wagner <sebastian.wagner@suse.com>
Mon, 11 May 2020 11:48:19 +0000 (13:48 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 12 May 2020 08:58:21 +0000 (10:58 +0200)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
doc/dev/cephadm.rst

index 2fd475f130092737c0967cd9ed38b6c7b8beaeb5..1784de422968b69c02c0cfef0baf2b8b7f9ab234 100644 (file)
@@ -85,3 +85,18 @@ When you're done, you can tear down the cluster with::
 
   sudo ../src/ckill.sh   # or,
   sudo ../src/cephadm/cephadm rm-cluster --force --fsid `cat fsid`
+
+Note regarding network calls from CLI handlers
+==============================================
+
+Executing any cephadm CLI commands like ``ceph orch ls`` will block
+the mon command handler thread within the MGR, thus preventing any
+concurrent CLI calls. Note that pressing ``^C`` will not resolve this
+situation, as *only* the client will be aborted, but not exceution
+itself. This means, cephadm will be completely unresonsive, until the
+execution of the CLI handler is fully completed. Note that even
+``ceph orch ps`` will not respond, while another handler is executed.
+
+This means, we should only do very few calls to remote hosts synchronously. 
+As a guideline, cephadm should do at most ``O(1)`` network calls in CLI handlers. 
+Everything else should be done asynchronously in other threads, like ``serve()``.