@voicenter-team/mysql-dynamic-cluster
Version:
Galera cluster with implementation of dynamic choose mysql server for queries, caching, hashing it and metrics
84 lines (83 loc) • 1.97 kB
TypeScript
import convict from 'convict';
declare const config: convict.Config<{
defaultPoolSettings: {
user: string;
password: string;
database: string;
port: number;
connectionLimit: number;
validators: ({
key: string;
operator: string;
value: string;
} | {
key: string;
operator: string;
value: number;
})[];
loadFactors: {
key: string;
multiplier: number;
}[];
timerCheckRange: {
start: number;
end: number;
};
timerCheckMultiplier: number;
queryTimeout: number;
slowQueryTime: number;
redisFactor: number;
};
showMetricKeys: boolean;
serviceMetrics: {
database: string;
table: string;
};
clusterHashing: {
nextCheckTime: number;
dbName: string;
};
redisInstant: boolean;
hosts: any[];
useClusterHashing: boolean;
clusterName: string;
errorRetryCount: number;
redis: {
enabled: boolean;
keyPrefix: string;
expire: number;
expiryMode: string;
algorithm: string;
encoding: "base64";
clearOnStart: boolean;
};
logs: {
level: import("../..").LOGLEVEL;
output: string;
};
amqp_logs: {
topic: string;
connection_master: {
host: string;
port: number;
username: string;
password: string;
vhost: string;
ssl: boolean;
heartbeat: number;
};
exchage: {
name: string;
type: import("../types/AmqpInterfaces").ExchangeType;
};
queue: {
name: string;
};
bindings: {
enabled: boolean;
pattern: string;
};
prefetch: number;
};
}>;
export = config;