Thread View: news.software.nntp
11 messages
11 total messages
Started by Dwight Ringdahl
Tue, 25 Apr 2000 00:00
Diablo 2.0 Server questions.
Author: Dwight Ringdahl
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
51 lines
1997 bytes
1997 bytes
Some of you here are familiar with WebUseNet Corp. formerly UseNetServer.Com. We are looking at other software packages to test for scalability. Our current solution is not scaling past 1,200 concurrent users on a 6 processor Sun E3500 w 9gb of RAM. A couple of questions I have on Diablo. 1. How well does it scale, could we get several 3000-4000 users on a box like the above? 2. How well does the server handle TCP/IP these boxes generally spit our over 120mbs each. 3. Can you add users or ip blocks for isps with out restarting the server? 4. How good are the logs and stats? 5. Is there stats programs available 6. Can you sync articles across 20 servers so that the readers all have the same article numbers? 7. How about support, being openware are there any good support sub- contractors out there? 8. Who currently has the largest install and are they willing to discuss this with me? 9. Our spools on these machines are between 1.5tb and 2.0tb. 10. How well does it expire articles? I have heard that it takes hours, does it effect the performance? OK that enough for now. TIA Dwight Ringdahl WebUseNet Corp. -- Dwight Ringdahl WebUseNet Corp. formerly UseNetServer.Com http://corp.webusenet.com
Re: Diablo 2.0 Server questions.
Author: Dwight Ringdahl
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
27 lines
1564 bytes
1564 bytes
> >:4. How good are the logs and stats? > > Do they track the size of the download? Our current pricing is based on download bytes. OK I have A Sun 450 I'll get setup to run in the next day or 2 as a slave to one of the twister boxes. I'll set it up with 3 400mhz cpus, a 1.5gb of ram, 1 - 18gb boot drive, 4 - 36gb 10k drives and a gig ethernet card. I'll open this up as a free reader server to load it up. We can get a couple thousand users on there in short order, to test with. Anyone who wants to help configure and test it is welcome, I'll give out the password to the system if requested by known news providers. -- Dwight Ringdahl WebUseNet Corp. formerly UseNetServer.Com http://corp.webusenet.com
Re: Diablo 2.0 Server questions.
Author: Greg Andrews
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
24 lines
1658 bytes
1658 bytes
Russell Vincent <rv@openusenet.org> writes: > >I am busy deploying a fairly large setup with 2x2TB + 2x500GB backend >spools, with about 20 frontend readers. Most of that is for redundancy >and won't be a single big spool. The disk hardware is all RAID 5 and >I have no doubt that it will perform well for the load it will get >(in the short term, anyway :-) ). > Oooo, you said "RAID5" and "perform well" in the same sentence. This used to provoke heated discussions in the days when traditional spool filesystems were used. Is RAID5 less of a problem with modern news filesystems than it was with traditional spool filesystems? -Greg -- ::::::::::::::::::: Greg Andrews gerg@wco.com ::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Re: Diablo 2.0 Server questions.
Author: Nickolai Zeldovich
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
66 lines
3320 bytes
3320 bytes
I'll try to answer some of your questions; our Diablo installation is fairly small, in comparison with others (read: Joe Greco's :-) In article <8F2172A5Fringdahlusenetnserve@209.247.210.100>, Dwight Ringdahl wrote: >1. How well does it scale, could we get several 3000-4000 users on a box >like the above? I would think so; I seem to recall Joe's reader box handling ~1500 reader connections or somesuch on PC hardware. >3. Can you add users or ip blocks for isps with out restarting the >server? Yes; the server automatically re-reads configuration files. >4. How good are the logs and stats? They've gotten better in 2.0; I think almost everything you'd want to know is being logged now. >5. Is there stats programs available feeder-stats comes in contrib/ with 2.0-REL, which gives you stats on your incoming/outgoing feeds. I have some scripts here which generate daily reader statistics, but they're a bit specific to our setup and you may want to write your own anyway. >6. Can you sync articles across 20 servers so that the readers all have >the same article numbers? As long as you have a master numbering server, yes. You can also sync active files with dsyncgroups. >7. How about support, being openware are there any good support sub- >contractors out there? Not that I know of.. Of course you can ask and usually someone will help, though that's probably not quite what you're looking for :-) >9. Our spools on these machines are between 1.5tb and 2.0tb. I think Joe's new spool machines are 1.8TB, though I'm sure he'll correct me if I'm wrong. >10. How well does it expire articles? I have heard that it takes hours, >does it effect the performance? Spool expiration is fast. The reader-side expiration speed depends on the way you do it. dhistory-based expiration on the reader is really slow, but it's usually overkill to run it often. Using fixed expiration times per group, or expiring based on a dexpire-generated dexpover.dat file is much faster (we run dexpireover every 4 hours and it takes about 10 minutes to run through all overview data). So in your case, you could generate dexpover.dat on the spool server and then distribute it to your reader boxes to use as input to dexpireover. We also run dhistory-based expiration once a week to pick up anything dexpover.dat might have missed and it usually takes about 3-4 hours, running in parallel mode with 4 forks. I suspect our bottleneck is the overview partition, which is currently two striped 10kRPM disks, and the fact that dhistory lives on the same partition isn't helping :-) -- kolya
Re: Diablo 2.0 Server questions.
Author: Joe Greco
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
140 lines
8709 bytes
8709 bytes
In news.software.nntp article <8F2172A5Fringdahlusenetnserve@209.247.210.100>, ringdahl@usenetserver.com (Dwight Ringdahl) wrote: :Some of you here are familiar with WebUseNet Corp. formerly :UseNetServer.Com. We are looking at other software packages to test for :scalability. Our current solution is not scaling past 1,200 concurrent :users on a 6 processor Sun E3500 w 9gb of RAM. A couple of questions I have :on Diablo. : :1. How well does it scale, could we get several 3000-4000 users on a box :like the above? I've run it up to 2000. With 2000, having the overview data on a pair of Barracuda-class drives slags the performance and the box falls behind. I have an open server that's constantly pegged at 1200. It pumps out an average of 3.6MBytes/sec to 1200 clients who are all rate-limited to 8K/sec. Machine = PIII-450 with 1GB of RAM (I was hoping it would compensate for the drives, it didn't, system ran the same as when it had 512MB RAM) My own design methodology is to use smaller reader boxes (which do not have their own local spool) and distribute them throughout the network. This places additional load on the network, but is acceptable and desirable in my situation. In yours, you would probably want a more integrated solution, at least at first. :2. How well does the server handle TCP/IP these boxes generally spit our :over 120mbs each. See above. :3. Can you add users or ip blocks for isps with out restarting the :server? Yes. You can add virtual servers as well. If you are going to do authentication, you can do RADIUS, or flat-file. If you have a lot of users, I'd suggest that you commission someone to write up something like a Berkeley DB interface. I might be interested in doing that, and I'd probably do it fairly cheap if you were willing to donate it back to the Diablo source tree. :4. How good are the logs and stats? Transaction-level, if you want that level of detail. Apr 25 00:00:02 reader0-chcgil reader[89652]: XXXXXXXXXXXXXXXXXdu [89652/6] > 223 844481 <O4LM4.8742$hB6.331570@sol.newscene.com> Article retrieved; request text separately. Apr 25 00:00:02 reader0-chcgil reader[89650]: XXXXXXXXXXXXXXXXXp.optusnet.com.au [89650/25] < ARTICLE 128701 Apr 25 00:00:02 reader0-chcgil reader[89674]: XXXXXXXXXXXXXXXXXon.wave.home.com [89674/14] < GROUP fj.rec.tv.drama Apr 25 00:00:02 reader0-chcgil reader[89659]: XXXXXXXXXXXXXXXXXrk4.ny.pub-ip.psi.net [89659/26] > 220 60801 <8e2950$og4$6@dosa.alt.net> article Apr 25 00:00:02 reader0-chcgil reader[89653]: XXXXXXXXXXXXXXXXX[89653/44] > 200 testnews.execpc.com NNRP Service Ready - news@execpc.com (no posting). Apr 25 00:00:02 reader0-chcgil reader[89653]: XXXXXXXXXXXXXXXXX[89653/44] $ exit articles 0 groups 0 posts 0 bytes 76 Apr 25 00:00:02 reader0-chcgil reader[89674]: XXXXXXXXXXXXXXXXXon.wave.home.com [89674/14] $ group fj.questions.internet articles 0 bytes 35 Apr 25 00:00:02 reader0-chcgil reader[89652]: XXXXXXXXXXXXXXXXXdu [89652/6] < HEAD Apr 25 00:00:02 reader0-chcgil reader[89674]: XXXXXXXXXXXXXXXXXon.wave.home.com [89674/14] > 211 21 3 23 fj.rec.tv.drama Apr 25 00:00:02 reader0-chcgil reader[89652]: XXXXXXXXXXXXXXXXXdu [89652/6] > 221 844481 <O4LM4.8742$hB6.331570@sol.newscene.com> head Apr 25 00:00:02 reader0-chcgil reader[89650]: XXXXXXXXXXXXXXXXXet [89650/8] < XOVER 1076576-1076602 Apr 25 00:00:02 reader0-chcgil reader[89650]: XXXXXXXXXXXXXXXXXet [89650/8] > 224 data follows Apr 25 00:00:02 reader0-chcgil reader[89653]: XXXXXXXXXXXXXXXXXm [89653/44] > 200 testnews.execpc.com NNRP Service Ready - news@execpc.com (no posting). You will see transaction level logging (with the '<' and '>' to indicate direction of data flow) which can be used to reconstruct NNTP sessions. Great for debugging. You will note statistical logging, with '$', to indicate overall statistics. There is also article disposition logging, for inbound feeds Apr 25 00:03:59 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] < takethis <AutoNCM-CosmoRoadkillN20000425040705.233530@bofh.int> Apr 25 00:03:59 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] + <AutoNCM-CosmoRoadkillN20000425040705.233530@bofh.int> news.lists.filters:4741910 Apr 25 00:03:59 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] + <AutoNCM-CosmoRoadkillN20000425040705.233530@bofh.int> alt.nocem.misc:4627730 Apr 25 00:03:59 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] > 239 <AutoNCM-CosmoRoadkillN20000425040705.233530@bofh.int> Apr 25 00:03:58 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] < takethis <8e35o1$ebc$83@pandora.alkar.net> Apr 25 00:03:58 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] - <8e35o1$ebc$83@pandora.alkar.net> poltava.commerce not in dactive Apr 25 00:03:58 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] - <8e35o1$ebc$83@pandora.alkar.net> sumy.commerce not in dactive Apr 25 00:03:58 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] - <8e35o1$ebc$83@pandora.alkar.net> ukr.commerce not in dactive Apr 25 00:03:58 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] - <8e35o1$ebc$83@pandora.alkar.net> ukr.commerce.chemical not in dactive Apr 25 00:03:58 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] - <8e35o1$ebc$83@pandora.alkar.net> ukr.commerce.machinery not in dactive Apr 25 00:03:58 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] - <8e35o1$ebc$83@pandora.alkar.net> ukr.commerce.metals not in dactive Apr 25 00:03:58 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] - <8e35o1$ebc$83@pandora.alkar.net> ukr.commerce.price-lists not in dactive Apr 25 00:03:58 reader0-chcgil feed[94992]: infeed.newsops.execpc.com [94992/68] > 239 <8e35o1$ebc$83@pandora.alkar.net> (I just grabbed some samples, sorry they are out of order). :5. Is there stats programs available Brad Knowles does feeder-stats.pl. The logs are in a format that is somewhat similar to INN, so INN programs may work with a little preprocessing. :6. Can you sync articles across 20 servers so that the readers all have :the same article numbers? Of course. However, the article number assignment has to happen centrally, as with most cluster designs I've seen. :7. How about support, being openware are there any good support sub- :contractors out there? Depending on what you need, I may be available, and there are probably some other folks as well. :8. Who currently has the largest install and are they willing to discuss :this with me? I think I do, but I'll be breaking my records in the coming months. :9. Our spools on these machines are between 1.5tb and 2.0tb. Uh, laff. Smaller than my current deployed architecture. I use a split system, with text stored on a 360GB spool (~ 6 months, although I currently only present about 2 months to users) and binaries stored on a 1.9TB spool, for a total of about 2.26TB. I'm looking to expand that to over 4TB when 72GB drives become available in the channel. :10. How well does it expire articles? I have heard that it takes hours, :does it effect the performance? Expiration happens separately for the reader and the feeder. The feeder expiration is very fast. The reader expiration is a function of your disk subsystem and current load. However, Diablo uses a circular overview system. I had one experimental box where I inadvertently didn't expire for about a month, and it did not present a problem, as the reader stuff seemed to handle all the details correctly. The most important function of the expiration process is to re-size each group dynamically. :OK that enough for now. : :TIA :Dwight Ringdahl :WebUseNet Corp. : : :-- :Dwight Ringdahl :WebUseNet Corp. :formerly UseNetServer.Com : :http://corp.webusenet.com : :
Re: Diablo 2.0 Server questions.
Author: Joe Greco
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
34 lines
2327 bytes
2327 bytes
In news.software.nntp article <8F219D5B3ringdahlusenetnserve@209.247.210.100>, ringdahl@usenetserver.com (Dwight Ringdahl) wrote: :>:4. How good are the logs and stats? : :Do they track the size of the download? Our current pricing is based on :download bytes. Uh, it was right there in the session log, look for "$ exit" and look for the bytes field. :-) It doesn't track on a per-command basis, though. Just a per-group and per- session. I added the feature so you can blame me. ;-) If that's not what you want, the beauty of an open-source solution is that you can add whatever changes you would prefer. You are not limited to what you can convince HighWind/bCandid/whoever to put in. :OK I have A Sun 450 I'll get setup to run in the next day or 2 as a slave :to one of the twister boxes. I'll set it up with 3 400mhz cpus, a 1.5gb of :ram, 1 - 18gb boot drive, 4 - 36gb 10k drives and a gig ethernet card. :I'll open this up as a free reader server to load it up. We can get a :couple thousand users on there in short order, to test with. : :Anyone who wants to help configure and test it is welcome, I'll give out :the password to the system if requested by known news providers. Got gcc and all that kind of stuff on it? I'll give it a whirl. Otherwise, I'm a few years out of date with installing tools on Solaris. Send mail and we can discuss it privately. I'm interested in knowing how such a system would perform. ... JG
Re: Diablo 2.0 Server questions.
Author: Joe Greco
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
24 lines
1972 bytes
1972 bytes
In news.software.nntp article <8e4uin$blr$3@quince.news.easynet.net>, Russell Vincent <rv@openusenet.org> wrote: :Joe Greco <jgreco@ns.sol.net> wrote: :> Uh, laff. Smaller than my current deployed architecture. I use a split :> system, with text stored on a 360GB spool (~ 6 months, although I currently :> only present about 2 months to users) and binaries stored on a 1.9TB spool, :> for a total of about 2.26TB. I'm looking to expand that to over 4TB when :> 72GB drives become available in the channel. : :I am busy deploying a fairly large setup with 2x2TB + 2x500GB backend :spools, with about 20 frontend readers. Most of that is for redundancy :and won't be a single big spool. The disk hardware is all RAID 5 and :I have no doubt that it will perform well for the load it will get :(in the short term, anyway :-) ). : :That is why I have been allowed to spend so much time getting Diablo up :to scratch for scalability and usability. :-) Sounds like fun. I'm doing something similar, although in my case it is triply redundant (no Rama references please). Sorry if I did not make that clear. ;-) ... JG
Re: Diablo 2.0 Server questions.
Author: Russell Vincent
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
20 lines
1705 bytes
1705 bytes
Joe Greco <jgreco@ns.sol.net> wrote: > Uh, laff. Smaller than my current deployed architecture. I use a split > system, with text stored on a 360GB spool (~ 6 months, although I currently > only present about 2 months to users) and binaries stored on a 1.9TB spool, > for a total of about 2.26TB. I'm looking to expand that to over 4TB when > 72GB drives become available in the channel. I am busy deploying a fairly large setup with 2x2TB + 2x500GB backend spools, with about 20 frontend readers. Most of that is for redundancy and won't be a single big spool. The disk hardware is all RAID 5 and I have no doubt that it will perform well for the load it will get (in the short term, anyway :-) ). That is why I have been allowed to spend so much time getting Diablo up to scratch for scalability and usability. :-) -Russell
Re: Diablo 2.0 Server questions.
Author: Thomas Neumann
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
236 lines
8422 bytes
8422 bytes
jgreco@ns.sol.net (Joe Greco) writes:
> [...] If you are going to do
> authentication, you can do RADIUS, or flat-file. If you have a lot of
> users, I'd suggest that you commission someone to write up something
> like a Berkeley DB interface. I might be interested in doing that, and
> I'd probably do it fairly cheap if you were willing to donate it back to
> the Diablo source tree.
I've already hacked up auth against a CDB database (see
<URL:http://cr.yp.to/cdb.html> for more info on CDB) which I prefer
because it's very lightweight and allows atomic updates of the
database without having to worry about locking in the diablo
code.
The patch below is against 2.0-BETA3, you need to
download <URL:ftp://cr.yp.to/cdb/cdb-0.55.tar.gz>,
extract it inside the diablo source tree and rename
the "cdb-0.55" dir to just "cdb". The patch is also available
at <URL:http://home.tmr-online.de/tn/diablo-cdb.patch> in
case it somehow gets messed up below ...
diff -r -u3 /tmp/diablo-2.0-BETA03/XMakefile diablo-2.0-BETA03/XMakefile
--- /tmp/diablo-2.0-BETA03/XMakefile Wed Apr 12 00:29:33 2000
+++ diablo-2.0-BETA03/XMakefile Wed Apr 26 17:48:40 2000
@@ -3,6 +3,7 @@
#include "XMakefile.inc"
all:
+ -(cd cdb && make)
(cd lib; xmake all)
(cd filter; xmake all)
(cd dreaderd; xmake all)
@@ -11,6 +12,7 @@
/* (cd contrib; xmake all) */
clean:
+ -(cd cdb && rm -f *.[0oa])
(cd lib; xmake clean)
(cd filter; xmake clean)
(cd dreaderd; xmake clean)
diff -r -u3 /tmp/diablo-2.0-BETA03/XMakefile.inc diablo-2.0-BETA03/XMakefile.inc
--- /tmp/diablo-2.0-BETA03/XMakefile.inc Tue Apr 18 17:28:56 2000
+++ diablo-2.0-BETA03/XMakefile.inc Wed Apr 26 17:49:25 2000
@@ -19,24 +19,24 @@
.set CC cc
#endif
-.set LFLAGS -L$(BD)obj -lfilter -ldiablo -lutil -lm
+.set LFLAGS -L$(BD)obj -L$(BD)cdb -lfilter -ldiablo -lcdb -lutil -lm
.set IDIR /news
.set MDIR /news/man
.set INSTALL install
#ifdef __FreeBSD__
-.set LFLAGS -L$(BD)obj -lfilter -ldiablo -lutil -lm -ldes -lmd -lradius
+.set LFLAGS -L$(BD)obj -L$(BD)cdb -lfilter -ldiablo -lcdb -lutil -lm -ldes -lmd -lradius
#endif
#ifdef __hpux
-.set LFLAGS "-L$(BD)obj" -lfilter -ldiablo -lm
+.set LFLAGS "-L$(BD)obj" "-L$(BD)cdb" -lfilter -ldiablo -lcdb -lm
#endif
#ifdef sun
/*
* some sun systems use -lsocket, some don't. complain to sun
*/
-.set LFLAGS "-L$(BD)obj" -lfilter -ldiablo -lm -lnsl -lsocket -lposix4
+.set LFLAGS "-L$(BD)obj" "-L$(BD)cdb" -lfilter -ldiablo -lcdb -lm -lnsl -lsocket -lposix4
.set LSTATIC
.set INSTALL /usr/ucb/install
#endif
diff -r -u3 /tmp/diablo-2.0-BETA03/dreaderd/defs.h diablo-2.0-BETA03/dreaderd/defs.h
--- /tmp/diablo-2.0-BETA03/dreaderd/defs.h Tue Apr 18 05:08:11 2000
+++ diablo-2.0-BETA03/dreaderd/defs.h Tue Apr 25 09:31:06 2000
@@ -110,8 +110,13 @@
typedef struct AuthDef { /* Define an authentication type */
char au_Name[DEFNAMELEN];
char au_File[255];
+#ifdef CDB_ENABLED
+ char au_Cdb[255];
+#endif
char au_External[255];
+#ifdef RADIUS_ENABLED
char au_Radius[255];
+#endif
char au_User[255];
char au_Pass[255];
char au_Realm[255];
diff -r -u3 /tmp/diablo-2.0-BETA03/dreaderd/dns.c diablo-2.0-BETA03/dreaderd/dns.c
--- /tmp/diablo-2.0-BETA03/dreaderd/dns.c Tue Apr 18 05:08:11 2000
+++ diablo-2.0-BETA03/dreaderd/dns.c Wed Apr 26 17:51:18 2000
@@ -23,13 +23,19 @@
void DnsTest(DnsReq *dreq, DnsRes *dres, char *fqdn, char **ary, const char *ipname);
int fileAuthenticate(char *user, char *pass, char *conf);
+#ifdef RADIUS_ENABLED
int radiusAuthenticate(char *user, char *pass, char *conf);
+#endif
int testForwardLookup(const char *hostName, const struct sockaddr_in *rsin);
void getAuthUser(const struct sockaddr_in *lsin, const struct sockaddr_in *rsin, char *ubuf, int ulen);
int readExactly(int fd, void *buf, int bytes);
void sigSegVDNS(int sigNo);
int readtoeof(int fd, void *buf, int bytes, int secs);
int readAccessLine(FILE *af, char *fname, AccessDef *adef);
+#ifdef CDB_ENABLED
+extern int cdb_seek(int, char*, unsigned int, unsigned int*);
+int cdbAuthenticate(char *user, char *pass, char *conf);
+#endif
int DFd = -1;
MemPool *DnsMemPool;
@@ -155,6 +161,38 @@
logit(LOG_NOTICE, "DNS process exiting n=%d/%d", n, sizeof(dreq));
}
+#ifdef CDB_ENABLED
+/*
+ * Search a CDB database for a matching username/passord
+ *
+ * Returns: -1 failure
+ * 0 success
+ *
+ */
+int cdbAuthenticate(char *user, char *pass, char *conf)
+{
+ unsigned int pwlen = 0;
+ int r = -1, fd = open(conf, O_RDONLY);
+ if (fd < 0) {
+ logit(LOG_ERR, "unable to open auth cdb %s", conf);
+ return(-1);
+ }
+ if (cdb_seek(fd, user, strlen(user), &pwlen) > 0) {
+ if (pwlen > 0) {
+ char pw[64+1];
+ if (pwlen > sizeof(pw)-1) pwlen = sizeof(pw)-1;
+ if (read(fd, pw, pwlen) == pwlen) {
+ pw[pwlen] = 0;
+ if (!strcmp(pw, pass)) r = 0;
+ }
+ }
+ }
+ close(fd);
+ return r;
+}
+#endif /* CDB_ENABLED */
+
+
/*
* Search a file of username:password pairs for a matching username/passord
*
@@ -444,6 +482,9 @@
if (*dres->dr_AuthDef->au_Radius ||
*dres->dr_AuthDef->au_File ||
+#ifdef CDB_ENABLED
+ *dres->dr_AuthDef->au_Cdb ||
+#endif
*dres->dr_AuthDef->au_External ||
*dres->dr_AuthDef->au_User)
AuthNeeded = 1;
@@ -561,6 +602,27 @@
printf("Authentication via file FAILED\n");
}
}
+
+#ifdef CDB_ENABLED
+ /*
+ * Check for the user+pass in a CDB
+ */
+
+ if (authok && *dres->dr_AuthDef->au_Cdb && *user &&
+ *dreq->dr_AuthPass) {
+ if (cdbAuthenticate(user, dreq->dr_AuthPass,
+ dres->dr_AuthDef->au_Cdb) == 0) {
+ Authenticated = 1;
+ if (DebugOpt)
+ printf("Authenticated via cdb\n");
+ } else {
+ Authenticated = -1;
+ if (DebugOpt)
+ printf("Authentication via cdb FAILED\n");
+ }
+ }
+#endif /* CDB_ENABLED */
+
}
if (!AuthNeeded ||
/* AUTHINFO and matched */
@@ -1205,6 +1267,12 @@
strncpy(authdef.au_File, val, sizeof(authdef.au_File) - 1);
continue;
}
+#ifdef CDB_ENABLED
+ if (*val && strcmp(opt, "cdb") == 0) {
+ strncpy(authdef.au_Cdb, val, sizeof(authdef.au_Cdb) - 1);
+ continue;
+ }
+#endif
if (*val && strcmp(opt, "external") == 0) {
strncpy(authdef.au_External, val, sizeof(authdef.au_External) - 1);
continue;
@@ -1786,8 +1854,13 @@
printf(" vs_Interface: %ld\n", dres->dr_VServerDef->vs_Interface);
printf("au_Name: %s\n", dres->dr_AuthDef->au_Name);
printf(" au_File: %s\n", dres->dr_AuthDef->au_File);
+#ifdef CDB_ENABLED
+ printf(" au_Cdb: %s\n", dres->dr_AuthDef->au_Cdb);
+#endif
printf(" au_External: %s\n", dres->dr_AuthDef->au_External);
+#ifdef RADIUS_ENABLED
printf(" au_Radius: %s\n", dres->dr_AuthDef->au_Radius);
+#endif
printf(" au_User: %s\n", dres->dr_AuthDef->au_User);
printf(" au_Pass: %s\n", dres->dr_AuthDef->au_Pass);
printf(" au_Realm: %s\n", dres->dr_AuthDef->au_Realm);
Only in diablo-2.0-BETA03/dreaderd: dns.c~
diff -r -u3 /tmp/diablo-2.0-BETA03/lib/vendor.h diablo-2.0-BETA03/lib/vendor.h
--- /tmp/diablo-2.0-BETA03/lib/vendor.h Mon Apr 10 18:45:18 2000
+++ diablo-2.0-BETA03/lib/vendor.h Wed Apr 26 17:49:54 2000
@@ -109,3 +109,10 @@
*/
#undef RADIUS_ENABLED
+
+/*
+ * Enable CDB authentication.
+ */
+
+#undef CDB_ENABLED
+
Re: Diablo 2.0 Server questions.
Author: Russell Vincent
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
29 lines
2040 bytes
2040 bytes
Greg Andrews <gerg@shell.ncal.verio.com> wrote: > Oooo, you said "RAID5" and "perform well" in the same sentence. > Is RAID5 less of a problem with modern news filesystems than it was > with traditional spool filesystems? I think it is a combination of a few factors: 1) I am using hardware RAID arrays with 64MB+ of memory for cache 2) The RAID arrays have 12 fast disks 3) Diablo is fairly sequential in its writing and disk I/O is a lot less than with INN's traditional spool, which is what most people used as a basis in the past. I am doing both newsfeeding and newsreading on RAID5 (both /news and /news/spool on the same RAID) and disk IO is not excessive. No doubt it is worse than striping, but I have no complaints. I was running 700 concurrent readers on a machine and had to start bandwidth limiting them as the 100Mb/s ethernet was reaching its limit. Client response times were good. I also have an INN 2.x machine using CNFS on RAID 5 and it is performing very well. It is only doing a small number of feeds, but certainly nowhere near IO bound. -Russell
Re: Diablo 2.0 Server questions.
Author: Brad Knowles
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
30 lines
2179 bytes
2179 bytes
In article <8e5bj2$jp7$1@shell1.ncal.verio.com>,
gerg@shell.ncal.verio.com (Greg Andrews) wrote:
> Oooo, you said "RAID5" and "perform well" in the same sentence.
>
> This used to provoke heated discussions in the days when traditional
> spool filesystems were used.
>
> Is RAID5 less of a problem with modern news filesystems than it was
> with traditional spool filesystems?
If you check the benchmarks that I recently posted regarding our new
news spool server I'm building, you'll see that with our external RAID-5
array, I am still achieving benchmark results that are close to the
performance levels achieved by Joe Greco in his RAID 0+1 1.8 TB array,
and not that far off from the levels seen by Terry Kennedy on his
solid-state disk.
And this is looking at the low-level raw device read performance,
without any filesystems or any such like standing in the way of
interpreting the numbers.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
Are you a news server administrator outside of North America and Western
Europe? If so, and you're interested in getting a newsfeed from a server
in the Freenix Top 50, please send me private e-mail for details.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads