RDS instance reboot
Reboot a target RDS DB instance (with optional Multi-AZ failover) for a configurable duration so you can test how applications behave when their database restarts.
RDS instance reboot is an AWS chaos fault that reboots a target RDS DB instance for a configurable duration. The reboot can be ordinary (in-place restart) or failover-triggering (Multi-AZ promotion of the standby). The fault calls AWS RDS APIs directly; no agent on the instance is required.
Use this fault to test how applications behave when their database restarts: do connection pools reconnect cleanly, do reads succeed on a replica, do writes resume after promotion, does the connection-string DNS resolve to the new endpoint, does monitoring fire the right alert?
Use cases
Run this fault when you want to answer concrete questions like:
Connection-pool resilience: When the DB instance reboots, does the application's connection pool reconnect cleanly, or does it serve stale connections that hang on first use?
Multi-AZ failover (with
FAILOVER=true): Does the standby promote within the expected window, and does the application's connection string resolve to the new endpoint?Read-replica behaviour: Do read replicas keep serving reads through the reboot, or do they fall behind on replication?
Write-path timeout: When writes are blocked during reboot, does the application queue them, retry them, or fail them cleanly?
Observability: Does monitoring fire one cohesive alert for the database reboot, or does it cascade into a noise storm?
Prerequisites
Kubernetes version: 1.21 or later for the chaos infrastructure cluster.
Target identified: Either
RDS_INSTANCE_IDENTIFIER(single instance) orCLUSTER_NAME(every instance in the cluster) is set.DB instance is available: The instance is in
availablestate when the fault starts.AWS credentials available: Either an AWS credentials file uploaded as a File Secret in Harness Secret Manager (see Authentication below) or IRSA on the chaos infrastructure service account.
Supported environments
Amazon RDS (MySQL, PostgreSQL, MariaDB, Oracle, SQL Server)
Supported
Amazon Aurora (MySQL and PostgreSQL compatible)
Supported (use CLUSTER_NAME to target every instance in the cluster)
Multi-AZ deployments
Supported (set FAILOVER=true to force a failover during reboot)
Single-AZ deployments
Supported (in-place restart only; FAILOVER=true is ignored)
Read replicas
Supported as targets (RDS_INSTANCE_IDENTIFIER)
Custom engines / on-cluster databases
Not supported
Permissions required
rds:RebootDBInstancedrives the fault.rds:DescribeDBInstancesconfirms the target reachesavailableagain after the reboot.rds:DescribeDBClustersresolvesCLUSTER_NAMEto a list of member instances when targeting an Aurora cluster.
Go to common policy for all AWS faults to use a single superset IAM policy.
Authentication
The fault supports three credential delivery models. Pick one based on how your chaos infrastructure is deployed.
Harness Secret Manager file secret
Chaos infrastructure runs outside EKS, or you want explicit static credentials
Upload the AWS credentials file as a File Secret in Harness Secret Manager and reference its identifier via AWS_AUTHENTICATION_SECRET
IAM Roles for Service Accounts (IRSA)
Chaos infrastructure runs in EKS and uses an OIDC-bound service account
No tunable changes; the chaos pod inherits the role automatically. Go to AWS IAM integration to set it up
Assume role
The fault needs to act in a different account or with elevated permissions
Set ASSUME_ROLE_ARN to the role ARN; the chaos pod assumes the role on top of its base credentials
When using the Harness Secret Manager method, the File Secret should contain an AWS credentials file in the standard ~/.aws/credentials format:
Upload this file as a File Secret in Harness Secret Manager (Project Setup → Secrets → New File Secret), and pass the secret identifier in AWS_AUTHENTICATION_SECRET.
Fault tunables
Required parameters
REGION
AWS region that hosts the target RDS instance or cluster (for example us-east-1).
(required)
RDS_INSTANCE_IDENTIFIER or CLUSTER_NAME
One of these must be set. RDS_INSTANCE_IDENTIFIER targets a specific DB instance; CLUSTER_NAME targets every instance in an Aurora cluster.
""
Chaos parameters
FAILOVER
When true and the target is Multi-AZ, the reboot forces a failover to the standby. Ignored on single-AZ instances.
false
INSTANCE_AFFECTED_PERC
Percentage of cluster member instances to reboot (only with CLUSTER_NAME).
100
TOTAL_CHAOS_DURATION
Duration of the fault in seconds. The chaos pod waits this long for the instance(s) to reach available again.
30
CHAOS_INTERVAL
Time interval between successive reboot iterations (in seconds).
30
DEFAULT_HEALTH_CHECK
When true, the fault performs default health checks against the instance(s) after the reboot.
false
SEQUENCE
Order in which multiple instances are rebooted: parallel or serial.
parallel
RAMP_TIME
Wait period in seconds before and after the fault.
0
Authentication
ASSUME_ROLE_ARN
ARN of an IAM role to assume on top of the base credentials.
""
AWS_AUTHENTICATION_SECRET
Identifier of the File Secret in Harness Secret Manager that contains the AWS credentials file. Not required when using IRSA.
""
Fault execution in brief
Calls RebootDBInstance against RDS_INSTANCE_IDENTIFIER (or every instance in CLUSTER_NAME filtered to INSTANCE_AFFECTED_PERC) with ForceFailover set to the value of FAILOVER, then polls DescribeDBInstances until the target reaches available again or TOTAL_CHAOS_DURATION is reached.
Expected behavior during fault execution
The target instance transitions through
rebooting→available(for in-place reboot) orrebooting→failing-over→available(for Multi-AZ failover).Active database connections are dropped; applications see "connection reset" or "lost connection" errors.
For Multi-AZ failover with
FAILOVER=true, the cluster endpoint DNS is updated to point at the new primary; cached connections need to be refreshed.Writes are unavailable during the reboot window (typically 30 seconds to a few minutes depending on engine and instance size).
Reads continue working on read replicas (if any), but replicas may briefly fall behind on replication.
Signals to watch
DB instance status: Use a command probe running
aws rds describe-db-instances --db-instance-identifier <id>to trackDBInstanceStatus.CloudWatch DB metrics: Use a Prometheus probe on
aws_rds_database_connections_averageto confirm connections drop to zero and recover.Application error rate: Use an HTTP probe against an endpoint that uses the database to detect downtime and measure recovery time.
Verify the fault execution effect
While the experiment is running:
Check DB instance status.
Status should be
rebooting(orfailing-overwith FAILOVER), thenavailable.For Multi-AZ failover, confirm AZ switched.
Recovery and cleanup
End of duration: The chaos pod stops polling once the instance is back to
available.Abort the experiment: Stopping the experiment from Chaos Studio stops polling; AWS still completes any in-flight reboot.
Manual recovery: If the instance is stuck in
rebootingbeyond the normal window, contact AWS Support; you cannot cancel a reboot once it has been issued.
Limitations
Reboot cannot be cancelled: Once
RebootDBInstanceis accepted, AWS proceeds. The fault cannot abort it mid-reboot.Multi-AZ failover is only available on Multi-AZ deployments:
FAILOVER=trueis silently ignored on single-AZ instances.DNS TTL after failover: The RDS endpoint's DNS TTL determines how quickly clients see the new primary. Long TTLs delay failover.
Write availability: Writes are unavailable for the duration of the reboot; the fault does not provide a write-availability surrogate.
Cluster targeting limitations: When using
CLUSTER_NAME,INSTANCE_AFFECTED_PERCcontrols how many writer/reader instances reboot, but a cluster only has one writer; targeting the writer always disrupts writes.
Troubleshooting
Related faults
RDS instance delete: Delete the DB instance entirely instead of rebooting it.
EC2 stop by ID: Stop a self-managed database EC2 instance instead of an RDS instance.
Common AWS fault tunables: Shared environment variables for AWS faults.
Last updated
Was this helpful?