gfs2 filesystem and dlm development
 help / color / mirror / Atom feed
From: Heming Zhao <heming.zhao@suse.com>
To: Alexander Aring <aahringo@redhat.com>
Cc: David Teigland <teigland@redhat.com>,
	ccaulfie@redhat.com, jfriesse@redhat.com, nicholas.yang@suse.com,
	glass.su@suse.com, gfs2@lists.linux.dev,
	Roger Zhou <ZZhou@suse.com>
Subject: Re: [PATCH] dlm_controld: Support for extended value of kernel DLM_MAX_ADDR_COUNT
Date: Fri, 28 Feb 2025 09:09:10 +0800	[thread overview]
Message-ID: <468a9169-3de2-4226-8aa1-61e0e211e4bd@suse.com> (raw)
In-Reply-To: <CAK-6q+g_bdNoptQ_bPUbzE9uL=strr6utQ3jM_1fxoMOpEjA7A@mail.gmail.com>

On 2/25/25 22:19, Alexander Aring wrote:
> Hi,
> 
> On Tue, Feb 25, 2025 at 2:34 AM Heming Zhao <heming.zhao@suse.com> wrote:
>>
>> Hello Dave,
>>
>> On 2/25/25 14:27, Heming Zhao wrote:
>>> On 2/25/25 03:35, David Teigland wrote:
>>>> On Mon, Feb 24, 2025 at 10:27:04AM -0500, Alexander Aring wrote:
>>>>> What are we doing with the detect_protocol() change? You want to
>>>>> submit the current version again? I would like to test it with
>>>>> corosync 2 vs 3 with no configuration changes on an upgrade (if this
>>>>> is even possible).
>>>>
>>>> I suggest we stop trying to detect, and always use tcp unless protocol is
>>>> set to sctp.
>>>>
>>>> Dave
>>>>
>>>
>>> That's fine with me
>>> For corosync 3.x, there is a lot of work to support dynamic multi-link.
>>> However, to support config mode, the current dlm code only requires a few modifications.
>>>
>>> - Heming
>>
>> Following your idea, if TCP is used by default, what will happen when a user
>> sets up multiple links in Corosync 3.x without changing config file?
>> The TCP mode of the current DLM only accepts one link. Therefore, in this
>> scenario, DLM will refuse to run and report an error.
>>
>> Do you think we need to invest effort in changing the TCP mode code to allow
>> TCP to work when the Corosync layer sets up multiple links?
>> For example, to simplify the code, we could take only the first network link
>> from the Corosync callback and ignore the others. Or we could keep the current
>> behavior and prevent running in multi-link mode under TCP.
> 
> I would ignore the others, there exists ways to run multipath TCP on
> top of multiple TCP sockets (similar to what mptcp is doing but mptcp
> might be overkill, lookup "mptcp redudant scheduler").
> This can be future work, existing code regarding sequence numbers of
> dlm messages can be reused.
> 
> If somebody applies multiple links we assume any of them would work.
> Later additional handling as mentioned above could just begin to work
> in a magical way.
> 
> - Alex
> 

Let me summarize the above discussion/description:
- TCP is the default.
- stop trying to detect:
   - use dlm.conf to switch from TCP to SCTP.
   - corosync.conf 'rrp_mode' is not supported in corosync 2.x.
- TCP can work with multi-link, but only accept the first ip addr from corosync.
- SCTP can support max 8 ip addr for corosync 3.x.

If there are no further discussions, I will provide a patch.

- Heming

  reply	other threads:[~2025-02-28  1:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-21 15:09 [PATCH] dlm_controld: Support for extended value of kernel DLM_MAX_ADDR_COUNT Heming Zhao
2025-02-24 15:27 ` Alexander Aring
2025-02-24 19:35   ` David Teigland
2025-02-25  6:27     ` Heming Zhao
2025-02-25  7:34       ` Heming Zhao
2025-02-25 14:19         ` Alexander Aring
2025-02-28  1:09           ` Heming Zhao [this message]
2025-02-28 15:34             ` Alexander Aring
2025-03-04  3:07               ` Heming Zhao
2025-03-04 18:04                 ` Alexander Aring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=468a9169-3de2-4226-8aa1-61e0e211e4bd@suse.com \
    --to=heming.zhao@suse.com \
    --cc=ZZhou@suse.com \
    --cc=aahringo@redhat.com \
    --cc=ccaulfie@redhat.com \
    --cc=gfs2@lists.linux.dev \
    --cc=glass.su@suse.com \
    --cc=jfriesse@redhat.com \
    --cc=nicholas.yang@suse.com \
    --cc=teigland@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox