Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Dying is easy. Comedy is difficult. -- Actor Edmond Gween, on his deathbed.


rocksolid / Rocksolid Nodes Help / Re: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid Light

SubjectAuthor
* Brainstorm Questions : Symlinking Multiple Peers for RocksolidSyber Shock
`* Brainstorm Questions : Symlinking Multiple Peers for RocksolidRetro Guy
 `* Brainstorm Questions : Symlinking Multiple Peers for RocksolidSyber Shock
  `* Brainstorm Questions : Symlinking Multiple Peers for RocksolidRetro Guy
   `* Brainstorm Questions : Symlinking Multiple Peers for RocksolidSyber Shock
    `- Brainstorm Questions : Symlinking Multiple Peers for RocksolidRetro Guy

1
Brainstorm Questions : Symlinking Multiple Peers for Rocksolid Light

<20231216164534.58628ba3@dev>

  copy mid

https://www.rocksolidbbs.com/rocksolid/article-flat.php?id=699&group=rocksolid.nodes.help#699

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!news.samoylyk.net!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid
Light
Date: Sat, 16 Dec 2023 16:47:20 -0600
Organization: To protect and to server
Message-ID: <20231216164534.58628ba3@dev>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="266236"; posting-host="9f56SA3QOliRwE4XD37gRA.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:VcO5KezVACRDfPXikQ0q4v7K5q55yEIK5IB43yGRJtw=
X-TOR-Router: sha256:MTg1LjY3LjgyLjExNA== --
X-Notice: Filtered by postfilter v. 0.9.3
 by: Syber Shock - Sat, 16 Dec 2023 22:47 UTC

Let's assume I have this setup ...

I configure the access for three peers.

Each peer has its configuration in a separate rslight.inc.php file in
its own directory.

The configuration files are all identical except for the peer hostname,
port and authentication data for each specific peer.

A wrapper script around the cron creates a symlink in
config/rslight.inc.php and points to one of the above referenced
configuration files before running config/scripts/cron.php.

At each invocation the symlink is changed to point to the next peer
config in the rotation. This way the syncronization rotates between the
three peers.

What problems might be encountered?

If the peers have different message ordering could this corrupt or
confuse the local tradspool or database message stores?

What more elegant method might work for this setup?

Re: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid Light

<a0e07b12120b7102a9777dea8fd67703$1@news.novabbs.org>

  copy mid

https://www.rocksolidbbs.com/rocksolid/article-flat.php?id=700&group=rocksolid.nodes.help#700

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid
Light
Date: Sun, 17 Dec 2023 11:37:38 +0000
Organization: Rocksolid Light
Message-ID: <a0e07b12120b7102a9777dea8fd67703$1@news.novabbs.org>
References: <20231216164534.58628ba3@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="206345"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5
*A|XCDf?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7
|z[.9iv^g>*8_BH0=hZt'[%)4kG|
 by: Retro Guy - Sun, 17 Dec 2023 11:37 UTC

On Sat, 16 Dec 2023 16:47:20 -0600, Syber Shock wrote:

> Let's assume I have this setup ...
>
> I configure the access for three peers.
>
> Each peer has its configuration in a separate rslight.inc.php file in
> its own directory.
>
> The configuration files are all identical except for the peer hostname,
> port and authentication data for each specific peer.
>
> A wrapper script around the cron creates a symlink in
> config/rslight.inc.php and points to one of the above referenced
> configuration files before running config/scripts/cron.php.
>
> At each invocation the symlink is changed to point to the next peer
> config in the rotation. This way the syncronization rotates between the
> three peers.
>
> What problems might be encountered?

I have not tried this, but I believe it should work.

> If the peers have different message ordering could this corrupt or
> confuse the local tradspool or database message stores?

Each peer will be saved in $spooldir/<section>/<peername:port.txt

This file saves the article number pointers per group per peer. Each peer
will create it's own file to keep track, so they should not step on each
other.

What you will probably find is a LOT of 'Duplicate' notices in
spoolnews.log as each peer starts from where it left off per group and
pulls the overview for what comes next. It will check the overview article
by article and NOT pull articles that are duplicates, which will be
displayed in the log file.

> What more elegant method might work for this setup?

If this is something people want to do, and I certainly see why they may
wish to, we could modify the code to make it easier. Perhaps a .conf file
to set it up (points servers to .inc.php files). That shouldn't be too
terribly complicated.

Re: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid Light

<20231217081538.17784499@dev>

  copy mid

https://www.rocksolidbbs.com/rocksolid/article-flat.php?id=706&group=rocksolid.nodes.help#706

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!paganini.bofh.team!not-for-mail
From: <3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid
Light
Date: Sun, 17 Dec 2023 08:15:38 -0600
Organization: To protect and to server
Message-ID: <20231217081538.17784499@dev>
References: <20231216164534.58628ba3@dev>
<a0e07b12120b7102a9777dea8fd67703$1@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="342305"; posting-host="PucJEPotjJyynPGC85C0DQ.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:x9I1OZwyBGWMJggY6LsraHtR1aqwvFVCxfdgYXum85E=
X-Notice: Filtered by postfilter v. 0.9.3
 by: Syber Shock - Sun, 17 Dec 2023 14:15 UTC

On Sun, 17 Dec 2023 11:37:38 +0000
Retro Guy <retroguy@novabbs.org> wrote:

> On Sat, 16 Dec 2023 16:47:20 -0600, Syber Shock wrote:
>
> > Let's assume I have this setup ...
> >
> > I configure the access for three peers.
> >
> > Each peer has its configuration in a separate rslight.inc.php file
> > in its own directory.
> >
> > The configuration files are all identical except for the peer
> > hostname, port and authentication data for each specific peer.
> >
> > A wrapper script around the cron creates a symlink in
> > config/rslight.inc.php and points to one of the above referenced
> > configuration files before running config/scripts/cron.php.
> >
> > At each invocation the symlink is changed to point to the next peer
> > config in the rotation. This way the syncronization rotates between
> > the three peers.
> >
> > What problems might be encountered?
>
> I have not tried this, but I believe it should work.
>
> > If the peers have different message ordering could this corrupt or
> > confuse the local tradspool or database message stores?
>
> Each peer will be saved in $spooldir/<section>/<peername:port.txt
>
> This file saves the article number pointers per group per peer. Each
> peer will create it's own file to keep track, so they should not step
> on each other.
>
> What you will probably find is a LOT of 'Duplicate' notices in
> spoolnews.log as each peer starts from where it left off per group
> and pulls the overview for what comes next. It will check the
> overview article by article and NOT pull articles that are
> duplicates, which will be displayed in the log file.
>
> > What more elegant method might work for this setup?
>
> If this is something people want to do, and I certainly see why they
> may wish to, we could modify the code to make it easier. Perhaps a
> .conf file to set it up (points servers to .inc.php files). That
> shouldn't be too terribly complicated.

Even something as simple as a switch list or cycle list in the code
that pulls pointers from a config file of available peers would be
plenty good. Brainstorm ...

Something like:

==> for groups in folder rocksolid/
$ nano rocksolid.peers
:rslight peers
rslight.config.php
paganini.config.php
novabbs.config.php
hispagatos.config.php

==> for groups in folder tilde/
$ nano tilde.peers
:tildeverse peers
tilde_club.config.php
tilde_team.config.php

for groups in folder hispagatos/
$ nano hispagatos.peers
hispagatos.inc.php
hispanicat.inc.php

Or maybe even simpler, all the *.inc.php for a group could be in the
same folder as the groups.txt file, and rslight could just check for the
extension *.inc.php.

So one would get this:

==> for groups in folder rocksolid/
$ ls rocksolid/
groups.txt
rslight.config.php
paganini.config.php
novabbs.config.php

==> for groups in folder hispagatos/
ls hispagatos/
groups.txt
hispagatos.inc.php
hispanicat.inc.php

I think I like the second way better. Less ways to mess it up. If there
is a filled-out or blank *inc.php above the folder then that would mark
the folder active as the source of config for that folder.

Basically the php script could check the folders for additional
*.inc.php files then cycle through them in alphabetical order or
digital order if the filenames begin with digits. I would limit it to
the first two digits being relevant. A manifest file would keep track
of the order, by noting the last one used during the last cron.

Re: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid Light

<6116327bd234c2cc366b22727e73a8ee$1@news.novabbs.org>

  copy mid

https://www.rocksolidbbs.com/rocksolid/article-flat.php?id=710&group=rocksolid.nodes.help#710

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid
Light
Date: Sun, 17 Dec 2023 15:09:35 +0000
Organization: Rocksolid Light
Message-ID: <6116327bd234c2cc366b22727e73a8ee$1@news.novabbs.org>
References: <20231216164534.58628ba3@dev>
<a0e07b12120b7102a9777dea8fd67703$1@news.novabbs.org>
<20231217081538.17784499@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="222396"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5
*A|XCDf?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7
|z[.9iv^g>*8_BH0=hZt'[%)4kG|
 by: Retro Guy - Sun, 17 Dec 2023 15:09 UTC

On Sun, 17 Dec 2023 08:15:38 -0600, Syber Shock < wrote:

> On Sun, 17 Dec 2023 11:37:38 +0000 Retro Guy <retroguy@novabbs.org>
> wrote:
>
>> On Sat, 16 Dec 2023 16:47:20 -0600, Syber Shock wrote:
>>
>> > Let's assume I have this setup ...
>> >
>> > I configure the access for three peers.
>> >
>> > Each peer has its configuration in a separate rslight.inc.php file in
>> > its own directory.
>> >
>> > The configuration files are all identical except for the peer
>> > hostname, port and authentication data for each specific peer.
>> >
>> > A wrapper script around the cron creates a symlink in
>> > config/rslight.inc.php and points to one of the above referenced
>> > configuration files before running config/scripts/cron.php.
>> >
>> > At each invocation the symlink is changed to point to the next peer
>> > config in the rotation. This way the syncronization rotates between
>> > the three peers.
>> >
>> > What problems might be encountered?
>>
>> I have not tried this, but I believe it should work.
>>
>> > If the peers have different message ordering could this corrupt or
>> > confuse the local tradspool or database message stores?
>>
>> Each peer will be saved in $spooldir/<section>/<peername:port.txt
>>
>> This file saves the article number pointers per group per peer. Each
>> peer will create it's own file to keep track, so they should not step
>> on each other.
>>
>> What you will probably find is a LOT of 'Duplicate' notices in
>> spoolnews.log as each peer starts from where it left off per group and
>> pulls the overview for what comes next. It will check the overview
>> article by article and NOT pull articles that are duplicates, which
>> will be displayed in the log file.
>>
>> > What more elegant method might work for this setup?
>>
>> If this is something people want to do, and I certainly see why they
>> may wish to, we could modify the code to make it easier. Perhaps a
>> .conf file to set it up (points servers to .inc.php files). That
>> shouldn't be too terribly complicated.
>
> Even something as simple as a switch list or cycle list in the code that
> pulls pointers from a config file of available peers would be plenty
> good. Brainstorm ...
>
> Something like:
>
> ==> for groups in folder rocksolid/
> $ nano rocksolid.peers :rslight peers rslight.config.php
> paganini.config.php novabbs.config.php hispagatos.config.php
>
> ==> for groups in folder tilde/
> $ nano tilde.peers :tildeverse peers tilde_club.config.php
> tilde_team.config.php
>
> for groups in folder hispagatos/
> $ nano hispagatos.peers hispagatos.inc.php hispanicat.inc.php
>
> Or maybe even simpler, all the *.inc.php for a group could be in the
> same folder as the groups.txt file, and rslight could just check for the
> extension *.inc.php.

That's something I've considered (not multiple config files, but
moving .inc.php to <section> dir, and I agree it's a good idea.

I'll start messing with this some time next week and see what I come up
with, including multiple .inc.php per <section>.

Re: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid Light

<20231217111126.3db60d98@dev>

  copy mid

https://www.rocksolidbbs.com/rocksolid/article-flat.php?id=711&group=rocksolid.nodes.help#711

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!i2pn.org!news.neodome.net!news.mixmin.net!news2.arglkargh.de!2.eu.feeder.erje.net!feeder.erje.net!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid
Light
Date: Sun, 17 Dec 2023 11:11:26 -0600
Organization: To protect and to server
Message-ID: <20231217111126.3db60d98@dev>
References: <20231216164534.58628ba3@dev>
<a0e07b12120b7102a9777dea8fd67703$1@news.novabbs.org>
<20231217081538.17784499@dev>
<6116327bd234c2cc366b22727e73a8ee$1@news.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: paganini.bofh.team; logging-data="357976"; posting-host="tnCHTgpbl4GinNSBes0gzg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
Cancel-Lock: sha256:pk6iKmmkXaG5P9r2LXrG1MgF5fvxUmeutzzg6DZ1+U8=
X-TOR-Router: sha256:MmEwMTo2MzQwOjI6NTAxOjoyMA== --
X-Notice: Filtered by postfilter v. 0.9.3
 by: Syber Shock - Sun, 17 Dec 2023 17:11 UTC

On Sun, 17 Dec 2023 15:09:35 +0000
Retro Guy <retroguy@novabbs.org> wrote:

<snip>

> > Something like:
> >
> > ==> for groups in folder rocksolid/
> > $ nano rocksolid.peers :rslight peers rslight.config.php
> > paganini.config.php novabbs.config.php hispagatos.config.php
> >
> > ==> for groups in folder tilde/
> > $ nano tilde.peers :tildeverse peers tilde_club.config.php
> > tilde_team.config.php
> >
> > for groups in folder hispagatos/
> > $ nano hispagatos.peers hispagatos.inc.php hispanicat.inc.php
> >
> > Or maybe even simpler, all the *.inc.php for a group could be in the
> > same folder as the groups.txt file, and rslight could just check
> > for the extension *.inc.php.
>
> That's something I've considered (not multiple config files, but
> moving .inc.php to <section> dir, and I agree it's a good idea.
>
> I'll start messing with this some time next week and see what I come
> up with, including multiple .inc.php per <section>.

If you push a testing branch I'll clone to test it and give feedback.

Re: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid Light

<5d97bc9d5386d80e4c952f1ee595ccf6$1@news.novabbs.org>

  copy mid

https://www.rocksolidbbs.com/rocksolid/article-flat.php?id=712&group=rocksolid.nodes.help#712

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.org (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: Brainstorm Questions : Symlinking Multiple Peers for Rocksolid
Light
Date: Sun, 17 Dec 2023 17:20:38 +0000
Organization: Rocksolid Light
Message-ID: <5d97bc9d5386d80e4c952f1ee595ccf6$1@news.novabbs.org>
References: <20231216164534.58628ba3@dev>
<a0e07b12120b7102a9777dea8fd67703$1@news.novabbs.org>
<20231217081538.17784499@dev>
<6116327bd234c2cc366b22727e73a8ee$1@news.novabbs.org>
<20231217111126.3db60d98@dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="233596"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5
*A|XCDf?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7
|z[.9iv^g>*8_BH0=hZt'[%)4kG|
 by: Retro Guy - Sun, 17 Dec 2023 17:20 UTC

On Sun, 17 Dec 2023 11:11:26 -0600, Syber Shock wrote:

> On Sun, 17 Dec 2023 15:09:35 +0000 Retro Guy <retroguy@novabbs.org>
> wrote:
>
> <snip>
>
>> > Something like:
>> >
>> > ==> for groups in folder rocksolid/
>> > $ nano rocksolid.peers :rslight peers rslight.config.php
>> > paganini.config.php novabbs.config.php hispagatos.config.php
>> >
>> > ==> for groups in folder tilde/
>> > $ nano tilde.peers :tildeverse peers tilde_club.config.php
>> > tilde_team.config.php
>> >
>> > for groups in folder hispagatos/
>> > $ nano hispagatos.peers hispagatos.inc.php hispanicat.inc.php
>> >
>> > Or maybe even simpler, all the *.inc.php for a group could be in the
>> > same folder as the groups.txt file, and rslight could just check for
>> > the extension *.inc.php.
>>
>> That's something I've considered (not multiple config files, but moving
>> .inc.php to <section> dir, and I agree it's a good idea.
>>
>> I'll start messing with this some time next week and see what I come up
>> with, including multiple .inc.php per <section>.
>
> If you push a testing branch I'll clone to test it and give feedback.

Sounds good, thank you! I will do that.

I have some doctor crap early in the week, but should be able to get to it
soon after that.

I like the idea, so looking forward to working on it.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor