LoRaWAN > Network Settings > Queue Size
The setting is per device.
Max number possible to be queued depends on the number of devices and size of packets.
There is 8MB of space for config, LNS DB and custom apps to share.
The size of each packet and meta-data in the queue id less than 500 bytes so 2000 would take up less than 1MB of NVM.
If more packets need to be stored the application could store them in the file system outside of /var/config/ they would be lost on firmware upgrade.
/var/oem/ could be used by the app to survive reboot and upgrade. It is another 8MB partition used for custom defaults.
Or an SD card can be installed and the LNS DB moved to it.