mbrav / ansible-inventory-diagram

Script for generating infrastructure diagrams from Ansible inventory files
GNU General Public License v3.0
1 stars 1 forks source link

Handling Large Inventory Files #3

Open Ernestas-S opened 1 year ago

Ernestas-S commented 1 year ago

Investigate capacity for Large Inventory Files

While testing the application with a substantial number of devices, it was encountered an issue where the generated graph size exceeded the capacity for labels and rendering. This prompts the question: What is the maximum size of an inventory file that the app can effectively handle?

Command to execute script used: py -3.9 diagram\main.py -i .\inventory\inventory.json -o png -n test_diagram -f test_diagram

Error generated after running the command before, was that a bunch of lines with different node code, one example is: Warning: node '85152ec6b7ad492fb1fbc7d7a2cf5d76', graph 'test_diagram\r\n2023 GNU GPL v3.0 - mbrav https://github.com/mbrav/ansible-inventory-diagram' size too small for label\r\nunexpected case in locate_endpoint\r\nunexpected case in locate_endpoint\r\ndot: graph is too large for cairo-renderer bitmaps. Scaling by 0.642163 to fit\r\n"]

mbrav commented 1 year ago

Can you provide the the inventory file you are using? Note, that the inventory file must be in json format and generated using Ansible's ansible-inventory command. It is also possible that there is a limitation in the Diagrams library.