Concurrent api calls

Started by GaardenZwerch, April 27, 2021, 10:24:31 AM

Previous topic - Next topic
Hi,

I have seen just now for the first time the situation where an API call is done to add an IP to an Alias
(https://$fw/api/firewall/alias_util/$action/$fwtable) and the call replies "status":"done"
but the address is not really added to the Alias.
The address is added to a 13 different Aliases in a loop, and each call reported  "status":"done" but in reality the address had only been added to 10 Aliases.
This series of calls is repeated on two nodes of my ha-cluster, and on the slave it worked as expected.

Can it be a problem if concurrent api calls are made? My users log on to a portal page and the portal makes these api calls to give them access to their resources, so this can happen 'simultaneously'.

Any hints?

Thanks a lot in advance,

Frank