Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Improving Commit Time When Using Configuration Groups

    This example shows how to use the persist-groups-inheritance configuration statement to improve commit time performance when committing configurations that make use of many configuration groups that are created using wildcards.

    Requirements

    This example uses the following hardware and software components:

    • One Juniper Networks M Series, MX Series, or T Series router that uses a number of configuration groups created with wildcards.

    • Junos OS Release 13.2 or later.

    Overview

    When committing a configuration that uses configuration groups, at the time of commit, all of the inheritance paths of the configuration groups must be fully expanded into memory to apply the configurations as intended. This can negatively impact commit performance if there are many configuration groups and they are configured using wildcards.

    To improve commit performance, you can configure persist-groups-inheritance at the [edit system commit] hierarchy level. Configuring this option causes the configuration groups to be expanded into the database instead of into the process memory at commit time.

    Configuration

    Configuring Persist Groups Inheritance

    Step-by-Step Procedure

    To configure persist-groups-inheritance:

    1. Set the persist-groups-inheritance option.
      [edit system commit]
      user@host# set persist-groups-inheritance
    2. Commit the configuration.
      [edit system commit]
      user@host# commit

    Results

    Verification

    Verifying the Configuration

    Purpose

    Verify that persist-groups-inheritance is configured.

    Action

    To confirm the configuration, use the show system commit command.

    [edit ]
    user@host# show system commit
    persist-groups-inheritance

    Modified: 2017-04-18