// Port on which the database is available.
"port": 3306,
- // Type of the database, e.g. "mysql", "pgsql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
"type": "mysql",
// User name to be used to access the database.
"user": "kea"
+ },
+ {
+ // Name of the database to connect to.
+ "name": "kea",
+
+ // Host on which the database resides.
+ "host": "localhost",
+
+ // Database password.
+ "password": "kea",
+
+ // Port on which the database is available.
+ "port": 5432,
+
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
+ "type": "postgresql",
+
+ // User name to be used to access the database.
+ "user": "kea"
+ },
+ {
+ // Name of the database to connect to.
+ "keyspace": "kea",
+
+ // Host on which the database resides.
+ "contact-points": "127.0.0.1",
+
+ // Database password.
+ "password": "kea",
+
+ // Port on which the database is available.
+ "port": 9042,
+
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
+ "type": "cql",
+
+ // User name to be used to access the database.
+ "user": "kea",
+
+ // Consistency level for all queries.
+ // Supported values: any, one, two, three, quorum, all,
+ // local-quorum, each-quorum, serial, local-serial, local-one.
+ "consistency": "quorum",
+
+ // Serial consistency level for all queries.
+ // Supported values: any, one, two, three, quorum, all,
+ // local-quorum, each-quorum, serial, local-serial, local-one.
+ "serial-consistency": "serial",
+
+ // Connection reconnect wait time.
+ "reconnect-wait-time": 100,
+
+ // Connection connect timeout.
+ "connect-timeout": 100,
+
+ // Connection request timeout.
+ "request-timeout": 100,
+
+ // Connection tcp keepalive.
+ "tcp-keepalive": 100,
+
+ // Connection tcp nodelay.
+ "tcp-nodelay": true
}
],
// because non stored leases will be lost upon Kea server restart.
"persist": true,
- // Lease database backend type, i.e. "memfile", "mysql", "pgsql"
- // or "cql".
+ // Lease database backend type, i.e. "memfile", "mysql",
+ // "postgresql" or "cql".
"type": "memfile"
},
// Name of the database to connect to.
"name": "config",
- // Type of the database, e.g. "mysql", "pgsql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
"type": "mysql"
}
]
// Port on which the database is available.
"port": 3306,
- // Type of the database, e.g. "mysql", "pgsql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
"type": "mysql",
// User name to be used to access the database.
// because non stored leases will be lost upon Kea server restart.
"persist": true,
- // Lease database backend type, i.e. "memfile", "mysql", "pgsql"
- // or "cql".
+ // Lease database backend type, i.e. "memfile", "mysql",
+ // "postgresql" or "cql".
"type": "memfile"
},
// Name of the database to connect to.
"name": "config",
- // Type of the database, e.g. "mysql", "pgsql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
"type": "mysql"
}
]
// password is not necessary to connect and that timeout is 5 seconds.
// Kea must be compiled with --with-pgsql option to use this backend.
// "lease-database": {
-// "type": "pgsql",
+// "type": "postgresql",
// "name": "keatest",
// "host": "localhost",
// "port": 5432,
// Port on which the database is available.
"port": 3306,
- // Type of the database, e.g. "mysql", "pgsql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
"type": "mysql",
// User name to be used to access the database.
"user": "kea"
+ },
+ {
+ // Name of the database to connect to.
+ "name": "kea",
+
+ // Host on which the database resides.
+ "host": "localhost",
+
+ // Database password.
+ "password": "kea",
+
+ // Port on which the database is available.
+ "port": 5432,
+
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
+ "type": "postgresql",
+
+ // User name to be used to access the database.
+ "user": "kea"
+ },
+ {
+ // Name of the database to connect to.
+ "keyspace": "kea",
+
+ // Host on which the database resides.
+ "contact-points": "127.0.0.1",
+
+ // Database password.
+ "password": "kea",
+
+ // Port on which the database is available.
+ "port": 9042,
+
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
+ "type": "cql",
+
+ // User name to be used to access the database.
+ "user": "kea",
+
+ // Consistency level for all queries.
+ // Supported values: any, one, two, three, quorum, all,
+ // local-quorum, each-quorum, serial, local-serial, local-one.
+ "consistency": "quorum",
+
+ // Serial consistency level for all queries.
+ // Supported values: any, one, two, three, quorum, all,
+ // local-quorum, each-quorum, serial, local-serial, local-one.
+ "serial-consistency": "serial",
+
+ // Connection reconnect wait time.
+ "reconnect-wait-time": 100,
+
+ // Connection connect timeout.
+ "connect-timeout": 100,
+
+ // Connection request timeout.
+ "request-timeout": 100,
+
+ // Connection tcp keepalive.
+ "tcp-keepalive": 100,
+
+ // Connection tcp nodelay.
+ "tcp-nodelay": true
}
],
// because non stored leases will be lost upon Kea server restart.
"persist": true,
- // Lease database backend type, i.e. "memfile", "mysql", "pgsql"
- // or "cql".
+ // Lease database backend type, i.e. "memfile", "mysql",
+ // "postgresql" or "cql".
"type": "memfile"
},
// Name of the database to connect to.
"name": "config",
- // Type of the database, e.g. "mysql", "pgsql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
"type": "mysql"
}
]
// Port on which the database is available.
"port": 3306,
- // Type of the database, e.g. "mysql", "pgsql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
"type": "mysql",
// User name to be used to access the database.
// because non stored leases will be lost upon Kea server restart.
"persist": true,
- // Lease database backend type, i.e. "memfile", "mysql", "pgsql"
- // or "cql".
+ // Lease database backend type, i.e. "memfile", "mysql",
+ // "postgresql" or "cql".
"type": "memfile"
},
// Name of the database to connect to.
"name": "config",
- // Type of the database, e.g. "mysql", "pgsql", "cql".
+ // Type of the database, e.g. "mysql", "postgresql", "cql".
"type": "mysql"
}
]
// password is not necessary to connect and that timeout is 5 seconds.
// Kea must be compiled with --with-pgsql option to use this backend.
// "lease-database": {
-// "type": "pgsql",
+// "type": "postgresql",
// "name": "keatest",
// "host": "localhost",
// "port": 5432,
sconsistency = getParameter("consistency");
consistency = sconsistency.c_str();
} catch (...) {
- // No user. Fine, we'll use NULL.
+ // No consistency. Fine, we'll use "quorum".
}
const char* serial_consistency = NULL;
sserial_consistency = getParameter("serial-consistency");
serial_consistency = sserial_consistency.c_str();
} catch (...) {
- // No user. Fine, we'll use NULL.
+ // No serial consistency. Fine, we'll use "serial".
}
const char* reconnect_wait_time = NULL;
description "Cassandra database keyspace (this is Cassandra's equivalent
of a database name).";
}
- leaf consistency {
- type string;
- description "Consistency level.";
- }
- leaf serial-consistency {
- type string;
- description "Serial consistency level which manages lightweight
- transaction isolation.";
- }
leaf max-reconnect-tries {
type uint32;
description "Maximum of recovery attempts before exit.";