unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* Is it safe to round-robin the nntp server?
@ 2021-09-01 20:30 Konstantin Ryabitsev
  2021-09-01 20:54 ` Eric Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Konstantin Ryabitsev @ 2021-09-01 20:30 UTC (permalink / raw)
  To: meta

Hello:

With lore.kernel.org now 3 different nodes with failover, I'm curious if it's
safe to point the NNTP server at that as well. I'm assuming that article
numbers are going to be the same across all three systems, but I wanted to
double-check that it's the case. I.e., if node1 goes down and DNS shifts to
point at node2, will that mess up nntp access, or is that okay? What about
imap?

-K

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Is it safe to round-robin the nntp server?
  2021-09-01 20:30 Is it safe to round-robin the nntp server? Konstantin Ryabitsev
@ 2021-09-01 20:54 ` Eric Wong
  2021-09-01 20:56   ` Konstantin Ryabitsev
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Wong @ 2021-09-01 20:54 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: meta

Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> Hello:
> 
> With lore.kernel.org now 3 different nodes with failover, I'm curious if it's
> safe to point the NNTP server at that as well. I'm assuming that article
> numbers are going to be the same across all three systems, but I wanted to
> double-check that it's the case. I.e., if node1 goes down and DNS shifts to
> point at node2, will that mess up nntp access, or is that okay? What about
> imap?

Likely, it depends on how picky NNTP clients are.  The one thing
that could differ is the "created_at" field in msgmap.sqlite3.

created_at probably affects IMAP more (UIDVALIDITY), though; and
I know some IMAP synchronization tools get picky about that.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Is it safe to round-robin the nntp server?
  2021-09-01 20:54 ` Eric Wong
@ 2021-09-01 20:56   ` Konstantin Ryabitsev
  2021-09-01 21:03     ` Eric Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Konstantin Ryabitsev @ 2021-09-01 20:56 UTC (permalink / raw)
  To: Eric Wong; +Cc: meta

On Wed, Sep 01, 2021 at 08:54:13PM +0000, Eric Wong wrote:
> > With lore.kernel.org now 3 different nodes with failover, I'm curious if it's
> > safe to point the NNTP server at that as well. I'm assuming that article
> > numbers are going to be the same across all three systems, but I wanted to
> > double-check that it's the case. I.e., if node1 goes down and DNS shifts to
> > point at node2, will that mess up nntp access, or is that okay? What about
> > imap?
> 
> Likely, it depends on how picky NNTP clients are.  The one thing
> that could differ is the "created_at" field in msgmap.sqlite3.
> 
> created_at probably affects IMAP more (UIDVALIDITY), though; and
> I know some IMAP synchronization tools get picky about that.

Is that value taken from git repos, or generated during indexing? All 3 nodes
replicating from the same set of sources, but they do indeed run the index
hooks at slightly different times.

-K

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Is it safe to round-robin the nntp server?
  2021-09-01 20:56   ` Konstantin Ryabitsev
@ 2021-09-01 21:03     ` Eric Wong
  2021-10-12 12:28       ` Eric Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Wong @ 2021-09-01 21:03 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: meta

Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> On Wed, Sep 01, 2021 at 08:54:13PM +0000, Eric Wong wrote:
> > Likely, it depends on how picky NNTP clients are.  The one thing
> > that could differ is the "created_at" field in msgmap.sqlite3.
>
> Is that value taken from git repos, or generated during indexing? All 3 nodes
> replicating from the same set of sources, but they do indeed run the index
> hooks at slightly different times.

Whenever public-inbox-init runs for v2 (first public-inbox-index for v1).

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Is it safe to round-robin the nntp server?
  2021-09-01 21:03     ` Eric Wong
@ 2021-10-12 12:28       ` Eric Wong
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Wong @ 2021-10-12 12:28 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: meta

Eric Wong <e@80x24.org> wrote:
> Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> > On Wed, Sep 01, 2021 at 08:54:13PM +0000, Eric Wong wrote:
> > > Likely, it depends on how picky NNTP clients are.  The one thing
> > > that could differ is the "created_at" field in msgmap.sqlite3.
> >
> > Is that value taken from git repos, or generated during indexing? All 3 nodes
> > replicating from the same set of sources, but they do indeed run the index
> > hooks at slightly different times.
> 
> Whenever public-inbox-init runs for v2 (first public-inbox-index for v1).

Fwiw, it should be possible to automate ->created_at
synchronization using Last-Modified from /_/text/config/raw.

"lei add-external --mirror" or public-inbox-clone +index will
both set ->created_at automatically to match Last-Modified of
the origin:

  https://public-inbox.org/meta/20211012114705.383-10-e@80x24.org/
  ([PATCH 9/9] www: _/text/config/raw Last-Modified: is mm->created_at)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-12 12:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01 20:30 Is it safe to round-robin the nntp server? Konstantin Ryabitsev
2021-09-01 20:54 ` Eric Wong
2021-09-01 20:56   ` Konstantin Ryabitsev
2021-09-01 21:03     ` Eric Wong
2021-10-12 12:28       ` Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).