9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Re: [sources] 20070410: % cat >/sys/lib/dist/changes/1176262206.1.txt << EOF
  2007-04-12 18:25 [9fans] Re: [sources] 20070410: % cat >/sys/lib/dist/changes/1176262206.1.txt << EOF ron minnich
@ 2007-04-12 18:41 Russ Cox
  2007-04-13  4:18 ` [9fans] Re: [sources] 20070410: % cat Lucio De Re
  0 siblings, 1 reply; 17+ messages in thread
From: Russ Cox @ 2007-04-12 18:41 UTC (permalink / raw)
  To: 9fans

/cfg is intended for machines with per-node configuration.
If you have 1000 machines that are functionally identical,
you're not supposed to write /cfg directories for any of them.

But if you have one machine that is supposed to do something
a little different (like run a venti server, or be an auth server),
then you can put those differences into /cfg/$sysname/cpurc.

What /cfg replaced was a giant

	switch($sysname){
	case this
		...
	case that
		...
	}

in /rc/bin/cpurc.  It's definitely a step forward for that
situation.

The Plan 9 distribution has always been "this works
well at Bell Labs; you might need to change it to suit you",
and that applies to /cfg as much as anything else.

/cfg is just a pragmatic solution for one use model.
If you are running large clusters, you will want something
different.  But most Plan 9 installations are not large clusters.

I for one am glad that people can edit cpurc instead of
having to agree on a general startup script mechanism.
Otherwise we might end up with something like /etc/init.d.

Russ



^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: [9fans] Re: [sources] 20070410: % cat >/sys/lib/dist/changes/1176262206.1.txt << EOF
@ 2007-04-12 18:25 ron minnich
  2007-04-12 18:38 ` [9fans] Re: [sources] 20070410: % cat geoff
  0 siblings, 1 reply; 17+ messages in thread
From: ron minnich @ 2007-04-12 18:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 4/12/07, Uriel <uriel99@gmail.com> wrote:

> Having /cfg by default might be a good idea, but I don't think it is a
> big deal as long as it is optional, I suspect most small networks can
> get by with cpurc.local and maybe a cpustart.local, and if you want
> /cfg, you can just create it and cpurc should take advantage of it
> automatically.

what's interesting about this file per node config stuff:
1. small sites don't need it
2. for big sites, it's just not practical at all. File per node on
1024 or more nodes? it just won't go. And 1024 is not a lot.
3. For medium sites, it's kind of ok, I guess.

So we've got at least three cases here. From my point of view, that
argues that we've done something wrong.

File per node for config info is reminiscent of what Sun used to do.
You had a directory, in which you put files like this:
0040506789AB
i.e. the MAC address, and that was a symlink to the correct bootstrap.
It was fine for networks of a 100-200 hundred nodes, at least in my
experience. It's totally unworkable at any reasonable scale.

For systems I work with, file per node is not going to work. A
configuration entry per node is marginally workable, to a point; but I
recently saw a system that had about 1Kbyte of XML per node
configuration, in one file; a 1 Mbyte file for a 1024 cluster, which
is not large nowadays; it's headache-inducing.

The onesis stuff (onesis.org) has introduced the concept of roles to
cluster computing, and it was used to bring up a 4096-node
IB-connected cluster. It is easy to set up (I've done it).

This note is written in the hope that we can do better. I don't
pretend I know how ... but per-node files doesn't really feel right.

thanks

ron


^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: [9fans] Re: [sources] 20070410: % cat >/sys/lib/dist/changes/1176262206.1.txt << EOF
@ 2007-04-12 16:08 Devon H. O'Dell
  2007-04-12 17:42 ` [9fans] Re: [sources] 20070410: % cat geoff
  0 siblings, 1 reply; 17+ messages in thread
From: Devon H. O'Dell @ 2007-04-12 16:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

2007/4/12, Uriel <uriel99@gmail.com>:
> On 4/12/07, Devon H. O'Dell <devon.odell@gmail.com> wrote:

[snip]

> > One thing I'm not sure of still is, if there is a cpurc.local, it may
> > want to implement some things dependent on e.g. what if you are
> > starting some client script that requires the network to already have
> > been initialized. This seems to be what you would end up putting in
> > your /cfg/$sysname/cpustart,
>
> We might want a /rc/bin/cpustart.local too?

No, it appears to serve the same purpose as cpurc.local --
cpu-specific startup, after initialization. (And it's not in the
default distribution). At what point do we stop and at what point do
we create cpustart.local.local.local?

> > We need to have something automatically create /cfg for peoples
> > fossils when they upgrade then. You can't just mkdir /cfg.
>
> Having /cfg by default might be a good idea, but I don't think it is a
> big deal as long as it is optional, I suspect most small networks can
> get by with cpurc.local and maybe a cpustart.local, and if you want
> /cfg, you can just create it and cpurc should take advantage of it
> automatically.

If we don't put /cfg in, I agree that cpustart.local is a good idea.

> > I could. How is your script splitting them up though? I was assuming
> > that it used those lines to split each change.
>
> For some unknown reason russ refused to have the changes split on his
> end, which would be the ideal. I have a script that splits the daily

Because it's a pain in the ass to go through all the changes individually.

> changes file and puts them in sources, see for example:
> /n/sources/contrib/uriel/changes/2007/0410/
> and then use that as input for the email notifications.
>
> If someone wants to get a single email per day, they can get a digest
> of plan9changes.
>
> To split I use some awk magic to detect text that is not indented,
> which is the comments that go over the diffs. See the end of
> /n/sources/contrib/uriel/plog for the (awful and fragile) details.

Ok. I'll start adding subjects then. But do please note, I'm not
intending to split them up past daily changelogs right now. Yes, the
makemail script does create separate changes, but editing them all
separately, figuring out what to name them, etc, would increase the
effort needed to do these things by a power of at least n*2.

--dho


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

end of thread, other threads:[~2007-04-14 14:51 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <12a554de22f1992874430323d774bd88@plan9.bell-labs.com>
2007-04-13  6:00 ` [9fans] Re: [sources] 20070410: % cat Lucio De Re
2007-04-13 14:25   ` Devon H. O'Dell
2007-04-13 14:56     ` erik quanstrom
2007-04-13 18:22       ` Lyndon Nerenberg
2007-04-13 21:39         ` Paweł Lasek
2007-04-14 14:51           ` Russ Cox
2007-04-13 15:00     ` Lucio De Re
2007-04-12 18:41 [9fans] Re: [sources] 20070410: % cat >/sys/lib/dist/changes/1176262206.1.txt << EOF Russ Cox
2007-04-13  4:18 ` [9fans] Re: [sources] 20070410: % cat Lucio De Re
2007-04-13  4:59   ` geoff
  -- strict thread matches above, loose matches on Subject: below --
2007-04-12 18:25 [9fans] Re: [sources] 20070410: % cat >/sys/lib/dist/changes/1176262206.1.txt << EOF ron minnich
2007-04-12 18:38 ` [9fans] Re: [sources] 20070410: % cat geoff
2007-04-12 18:43   ` Devon H. O'Dell
2007-04-12 16:08 [9fans] Re: [sources] 20070410: % cat >/sys/lib/dist/changes/1176262206.1.txt << EOF Devon H. O'Dell
2007-04-12 17:42 ` [9fans] Re: [sources] 20070410: % cat geoff
2007-04-12 18:00   ` Anthony Sorace
2007-04-12 18:16     ` Russ Cox
2007-04-12 18:57       ` Anthony Sorace
2007-04-13  4:04   ` Lucio De Re
2007-04-13  4:58     ` geoff

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 NNTP newsgroup(s).