DedicatedDatabasePooler class
PoolerConfig
- Implemented types
Constructors
- DedicatedDatabasePooler({required bool enabled, required String mode, required int maxConnections, required int defaultPoolSize, required int port, required bool readWriteSplitting, required String poolerCpuRequest, required String poolerCpuLimit, required String poolerMemoryRequest, required String poolerMemoryLimit})
-
DedicatedDatabasePooler.fromMap(Map<
String, dynamic> map) -
factory
Properties
- defaultPoolSize → int
-
Default pool size per user.
final
- enabled → bool
-
Whether connection pooling is enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxConnections → int
-
Client-connection ceiling the pooler accepts. Enforced on MySQL and MariaDB; on PostgreSQL the pooler has no client cap, so this reports the database's advertised networkMaxConnections and cannot be set here.
final
- mode → String
-
Connection pool mode. Possible values: transaction (releases connections back to pool after each transaction), session (holds connections for the entire client session).
final
- poolerCpuLimit → String
-
Effective CPU limit applied to the pooler sidecar container (Kubernetes quantity). Returns the proportional default (10% of DB CPU, floor 200m) unless overridden.
final
- poolerCpuRequest → String
-
Effective CPU request applied to the pooler sidecar container (Kubernetes quantity). Returns the proportional default (5% of DB CPU, floor 100m) unless overridden.
final
- poolerMemoryLimit → String
-
Effective memory limit applied to the pooler sidecar container (Kubernetes quantity). Returns the proportional default (15% of DB memory, floor 128Mi) unless overridden.
final
- poolerMemoryRequest → String
-
Effective memory request applied to the pooler sidecar container (Kubernetes quantity). Returns the proportional default (7.5% of DB memory, floor 64Mi) unless overridden.
final
- port → int
-
Pooler listening port.
final
- readWriteSplitting → bool
-
Whether SELECTs are routed to HA replicas while writes and locked reads stay on the primary. Active only when HA is enabled.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited