Skip to content

File coordinator.cpp

FileList > connection > coordinator.cpp

Go to the source code of this file

  • #include <random>
  • #include <algorithm>
  • #include <unistd.h>
  • #include <sys/eventfd.h>
  • #include <sys/timerfd.h>
  • #include <sys/epoll.h>
  • #include "resources.hpp"
  • #include "system_parameter.h"
  • #include "thread_manager.hpp"
  • #include "connection_pool.hpp"
  • #include "coordinator.hpp"
  • #include "connection_sr.h"
  • #include "server_support.h"
  • #include "memory_wrapper.hpp"

Namespaces

Type Name
namespace cubconn
namespace connection

Macros

Type Name
define EVAL_CONTEXT (bytes, budget) ([**VAL\_TO\_SCORE**](coordinator_8cpp.md#define-val_to_score) (50, 1000, (bytes)) + [**VAL\_TO\_SCORE**](coordinator_8cpp.md#define-val_to_score) (10, 1, ([**budget**](broker__monitor_8c.md#function-timeout))))
define EVAL_WORKER (mq, rmutex) ([**VAL\_TO\_SCORE**](coordinator_8cpp.md#define-val_to_score) (25, 3.5, ([**mq**](broker__monitor_8c.md#function-timeout))) + [**VAL\_TO\_SCORE**](coordinator_8cpp.md#define-val_to_score) (500, 1, (rmutex)))
define EWMA_ALPHA 0.06
define EWMA_CONTEXT (key) c\_ewma.get (statistics::context::key)
define EWMA_CONTEXT (key) c\_ewma.get (statistics::context::key)
define EWMA_WORKER (key) w\_ewma.get (statistics::worker::key)
define VAL_TO_SCORE (w, m, s) (([**w**](broker__monitor_8c.md#function-timeout)) \* [**static\_cast**](broker__monitor_8c.md#function-timeout)&lt;[**double**](broker__monitor_8c.md#function-timeout)&gt; (s) / (m))
define er_log_conn (...)

Macro Definition Documentation

define EVAL_CONTEXT

#define EVAL_CONTEXT (
    bytes,
    budget
) `( VAL_TO_SCORE (50, 1000, (bytes)) + VAL_TO_SCORE (10, 1, ( budget )))`

define EVAL_WORKER

#define EVAL_WORKER (
    mq,
    rmutex
) `( VAL_TO_SCORE (25, 3.5, ( mq )) + VAL_TO_SCORE (500, 1, (rmutex)))`

define EWMA_ALPHA

#define EWMA_ALPHA `0.06`

define EWMA_CONTEXT

#define EWMA_CONTEXT (
    key
) `c_ewma.get (statistics::context::key)`

define EWMA_CONTEXT

#define EWMA_CONTEXT (
    key
) `c_ewma.get (statistics::context::key)`

define EWMA_WORKER

#define EWMA_WORKER (
    key
) `w_ewma.get (statistics::worker::key)`

define VAL_TO_SCORE

#define VAL_TO_SCORE (
    w,
    m,
    s
) `(( w ) * static_cast < double > (s) / (m))`

define er_log_conn

#define er_log_conn (
    ...
) 


The documentation for this class was generated from the following file cubrid/src/connection/coordinator.cpp