According to Andre Schlosberg:
> This is a question on the architecture/application flow of ht://Dig.
> I would like to run htsearch off a web server and the htdig and htmerge
> programs off an application server.
> I would like to know whether the example given below is a possible
> scenario and if not then how could we summarize the ht://Dig flow.
>
> For example,
>
> An HTML search form calls the htsearch cgi program that resides on the web
> server. The web server inturn interfaces with the database (essentially a
> flat file) through an application server on which htdig and htmerge run.
The databases that htsearch searches are Berkeley DB files, which I don't
think can accurately be called flat files. However, htsearch is monolithic
in that the search is carried out on the web server, and not farmed out to
an application server, so there's not an easy way to do what you describe.
Here are a few options that might be close, though:
1) If your web server and application server have compatible architectures,
you can run htdig and htmerge on the application srever, then copy the
databases over to the web server for use by htsearch.
2) You could do like in (1) above, except that instead of copying the
files, you can NFS-mount the filesystem that contains the database files,
so that the web server gets at the application server's disk remotely
when running htsearch. You may find there's too much of a performance
penalty in this approach, though.
3) You could write a simple wrapper program for htsearch, which will run
on the web server and pass queries along to the real htsearch running on
the application server. This would take some effort to develop, but if
you really want to keep all database accesses on the application server,
this is one way to do it.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html