nautobot-ansible icon indicating copy to clipboard operation
nautobot-ansible copied to clipboard

REST API Inventory Better Handle Large Inventories

Open jvanderaa opened this issue 2 years ago • 3 comments

ISSUE TYPE
  • Bug Report
SOFTWARE VERSIONS
pynautobot

N/A - REST API Inventory

Ansible:

x.x

Nautobot:

1.1.4

Collection:

networktocode.nautobot

SUMMARY

With large inventories, Ansible may cause requests to timeout for Nautobot due to asking for all resources.

STEPS TO REPRODUCE
  1. Create a large inventory in Nautobot
  2. Use Nautobot Inventory
  3. See timeouts and large CPU utilization
EXPECTED RESULTS

Completed inventory

ACTUAL RESULTS

Incomplete inventory

Possible Solution

  1. Look into handling pagination built into Nautobot instead of requesting all
  2. Evaluate moving to pynautobot to handle pagination
  3. Others

jvanderaa avatar Nov 02 '21 21:11 jvanderaa