More performance tweaks

This commit is contained in:
Olof hagsand 2019-04-21 17:29:11 +02:00
parent 8c36083e16
commit 6a0628141a
9 changed files with 63 additions and 24 deletions

View file

@ -12,14 +12,14 @@ Olof Hagsand, 2019-04-17
## 1. Background
CIixon can handle large configurations. Here, large number of elements
Clixon can handle large configurations. Here, large number of elements
in a "flat" list is presented. There are other scaling usecases,
such as large configuratin "depth", large number of requesting
clients, etc.
Thanks to [Netgate](www.netgate.com) for supporting this work.
## 2.Overview
## 2. Overview
The basic case is a large list, according to the following Yang specification:
```

View file

@ -254,7 +254,8 @@ When the startup process is completed, a startup status is set and is accessible
If the startup fails, the backend looks for a `failsafe` configuration
in `CLICON_XMLDB_DIR/failsafe_db`. If such a config is not found, the
backend terminates.
backend terminates. In this mode, running and startup mode should be
unchanged.
If the failsafe is found, the failsafe config is loaded and
committed into the running db.
@ -405,6 +406,7 @@ running |--------+------------> GOTO EXTRA XML
### Running mode
On failure, running is restored to initial state
```
running ----+ |----------+--------> GOTO EXTRA XML
\ copy parse validate OK / commit
@ -420,7 +422,7 @@ running |--------+------------> GOTO EXTRA XML
startup -------+--+-------+------------+
```
### Failure
### Failure if failsafe
```
failsafe ----------------------+
reset \ commit