Hi,

Em ter., 24 de mar. de 2026 às 13:42, Rukomoinikova Aleksandra
<[email protected]> escreveu:

>
> Hi Lucas! I was looking into this patch while trying to solve my issue,
> and I had a question.
> Could you please explain why selection_fields was added to the tests for
> the load balancer (effectively switching hasing mode from dp_hash to hash)?
>

In my scenario, I have two logical routers with the same load balancer and
backends, if packets incoming by different logical routers, dp_hash could
select a backend different from the old packets.


My initial assumption was that this might help address the issue where, in
> stateless mode (with use_stateless_nat), selecting a backend via select()
> on a per-packet basis can lead to broken sessions when the number of
> backends changes. I was thinking that using hash instead of dp_hash could
> make backend selection more consistent with respect to backend count
> changes—at least in OVS with hash mode, where consistency can be preserved
> if OpenFlow groups aren’t recreated but only have buckets updated (though I
> might be misunderstanding this part). Perhaps everything I described above
> has nothing to do with the reason you added it, but I just wanted to
> express my assumptions. However, in OVN, backend changes result in the
> group being deleted and recreated from scratch, so this didn’t seem to be
> right one idea
>
>
You're correct, if backends are changed, it can lead to broken sessions.
Also, I didn't enter in details about how OVS handles the change from
backends in both modes.

Regards,
Lucas

Thanks for your help!
>

-- 




_‘Esta mensagem é direcionada apenas para os endereços constantes no 
cabeçalho inicial. Se você não está listado nos endereços constantes no 
cabeçalho, pedimos-lhe que desconsidere completamente o conteúdo dessa 
mensagem e cuja cópia, encaminhamento e/ou execução das ações citadas estão 
imediatamente anuladas e proibidas’._


* **‘Apesar do Magazine Luiza tomar 
todas as precauções razoáveis para assegurar que nenhum vírus esteja 
presente nesse e-mail, a empresa não poderá aceitar a responsabilidade por 
quaisquer perdas ou danos causados por esse e-mail ou por seus anexos’.*



_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to