Friday, 2023-01-13

skraynevhi. could you help with understanding difference between amphorav1/amphorav2? I mean, some doc about these differences. Also is it possible, that with amphorav2 I get error like "resource immutable" when send several create requests one by one (listener, pool, monitor, member). AND on amphorav1 I don't see such error. It looks like amphorav1 - synchronous, when amphorav2 - is asynchronous.06:55
gthiemongeskraynev: Hi, johnsom replied to this question yesterday, but basically there are both asynchronous, the only difference is internal: the type of data that are shared between the tasks (amphorav1 uses python objects, amphorav2 uses python dicts), with v2 it's easier to serialize the data and save it to a DB for HA07:33
gthiemongeskraynev: it would interesting to check your worker's logs, is there any backtraces/errors?07:34
gthiemongeskraynev: are those resources stuck in this immutable state?07:34
skraynevgthiemonge: oh, I missed reply from johnsom. sorry.07:38
skraynevgthiemonge: no. pool comes to ACTIVE state after some time. However the case is, that I send send several requests one by one and validate only http status code instead of provisioning status. for amphorav1 it worked without any error about immutable status, after switching on amphorav2 - I get immutable error in 90% situations, when try to repeat action.07:41
skraynevIt potentially could be related to execution time, i.e. in amphorav1 resources came to ACTIVE state faster and I did not see same error. So now I try to investigate this behaviour07:43
opendevreviewTom Weininger proposed openstack/octavia master: Remove support for split listener configuration  https://review.opendev.org/c/openstack/octavia/+/86259908:05
opendevreviewTom Weininger proposed openstack/octavia master: Remove support for split listener configuration  https://review.opendev.org/c/openstack/octavia/+/86259908:10
gthiemongeskraynev: v2 might be a little bit slower ATM, it does more DB requests than v1, but I don't think it will more than 1 or 2 seconds to the duration of a request08:44
skraynevgthiemonge: I got it. Could it also be related to changes from ussuri to yoga? I mean, maybe some API changes here.08:46
gthiemongeskraynev: hmm, nop I don't think we made such impactful changes to the API08:49
gthiemongebut, maybe the amphora VM is slower because it's based on a different distribution08:49
skraynevgthiemonge: hm.. maybe.. I will take a look. thank you for the help :)08:50
gthiemongeskraynev: if DEBUG is enabled in the octavia-worker, you will see log message that may be helpful to get the duration of each request08:53
gthiemongeskraynev: for instance, https://paste.opendev.org/show/bUV3DGBcVYIaKTtlcK7T/08:54
gthiemongethey indicate the start and the end of the creation of a LB08:54
skraynevgthiemonge: interesting. I found, that with amphorav1 octavia-create-pool-flow takes around 1-2 sec, when for amphorav2 it took 1-2 sec and time to time 5-6 sec ....09:56
opendevreviewTom Weininger proposed openstack/octavia master: Add test case for testing with unknown API version  https://review.opendev.org/c/openstack/octavia/+/87007510:51
*** dkehn_ is now known as dkehn23:57

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!