]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson: add poor man's md_config_t
authorKefu Chai <kchai@redhat.com>
Sat, 26 May 2018 11:25:56 +0000 (19:25 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 13 Jun 2018 06:09:22 +0000 (14:09 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/net/Config.h [new file with mode: 0644]

diff --git a/src/crimson/net/Config.h b/src/crimson/net/Config.h
new file mode 100644 (file)
index 0000000..21b0a4b
--- /dev/null
@@ -0,0 +1,25 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+
+// XXX: a poor man's md_config_t
+#pragma once
+
+#include "include/msgr.h"
+#include <chrono>
+
+namespace ceph::net {
+
+using namespace std::literals::chrono_literals;
+
+constexpr struct simple_md_config_t {
+  uint32_t host_type = CEPH_ENTITY_TYPE_OSD;
+  bool cephx_require_signatures = false;
+  bool cephx_cluster_require_signatures = false;
+  bool cephx_service_require_signatures = false;
+  bool ms_die_on_old_message = true;
+  bool ms_die_on_skipped_message = true;
+  std::chrono::milliseconds ms_initial_backoff = 200ms;
+  std::chrono::milliseconds ms_max_backoff = 15000ms;
+  size_t osd_client_message_size_cap = 500ULL << 20;
+} conf;
+}