cue-ansible
cue-ansible copied to clipboard
CUE vs Ansible
CUE vs Ansible
Exploring the following topics:
- Comparing CUE with Ansible
- Migrating from Ansible to CUE
- Using CUE to validate Ansible host variables
- Migrating Jinja template to CUE and using CUE scripting for inventory management.
- Data transformation with CUE
Resource Utilisation Comparison
Memory utilisation is measured with mprof since
timedoesn't catch the memory used by Ansible's forked processes.
Configuring a single device
Average CPU, time and max peak memory over 10 measurements:
| A/C | CPU% | Max Mem (MB) | Time (mm:ss.0) |
|---|---|---|---|
| Ansible (HTTP) | 82 | 131.820 | 00:02.7 |
| CUE (API) | 17 | 24.504 | 00:01.2 |
Configuring 20 devices
Average CPU, time and max peak memory over 10 measurements:
| A/C | CPU% | Max Mem (MB) | Time (mm:ss.0) |
|---|---|---|---|
| CUE API | 114 | 155.230 | 00:03.2 |
| CUE SSH | 10 | 208.504 | 00:08.3 |
| Ansible (HTTP) | 157 | 1927.906 | 00:10.7 |
| Ansible (SSH) | 32 | 1175.422 | 00:08.3 |