Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


resize (Ephemeral Database)


Hierarchy Level


Resize the ephemeral instance's configuration database. The system resizes the database during the commit operation when it meets the criteria in both the database-size-diff and database-size-on-disk statements. The system displays Database resize completed after it successfully resizes the configuration database.

A resize operation involves copying the active configuration objects to a new database and setting the version for each object to the latest version. Resizing the database effectively removes all deleted configuration objects and defragments the database.


If you do not include this statement, the device does not resize the ephemeral database.


none Enable database resizing and use the default values for the database-size-diff and database-size-on-disk statements.
database-size-diff size

Specify the minimum difference between the database size and the actual usage.

  • Default: 100 MB

  • Range: 1 MB through 1024 MB

database-size-on-disk size

Specify the minimum configuration database size on disk.

  • Default: 450 MB

  • Range: 1 MB through 1024 MB

Required Privilege Level

admin—To view this statement in the configuration.

admin-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 23.2R1 and Junos OS Evolved Release 23.2R1.