Torben Nehmer wrote:
> I'm planning to setup Midgard Services for my customers. Now I'm facing
> a decision where I'm not sure what to do. I need a way to separate the
> environments of my customers. There are two ways: Sitegroups and
> independent Databases.
>
> Now which one is better?
About 10 days ago, I had to decide about exactly the same question. I
prefered sitegroups with one single db. So, I was trying asgard and
midgard cvs as well as beta7-1. I came across a number of errors and
switched to multidb with one shared old admin site which works fine.
Those errors may have been rooted out meanwhile.
> How does Midgard manage this, if I have let's say 50 or 100
> Databases?
The trick is to use the same user/password for communication between
midgard and all these databases. Then you don't have exceedingly many
persistent database connections.
> Sitegroups seem a good solution for it. But how far is repligard. Some
> potential customers might want to develop their site at a development
> system and transfert the finished site to my server.
I don't know this.
> I have no real overview over the Midgard architecture and can't quite
> make up my mind for one of these approches. I'd love to hear some
> opinons...
I'd say that ideally the sitegroup approach is the neater solution but I
do not know how flawless it works with current midgard. Maybe it does.
The multidb solution is garanteed to work. BTW, now I understand Emile's
claim that the multidb code (sharing the admin site) is absolutely
simple. As far as I can tell, all happens in mod_midgard. At the right
moment, the actual database is simply switched from the users db to the
page db. Inedd simple but powerful.
The only real disadvantage with multidb is that you cannot use an
arbitrary admin site. The topic system and calls like $midgard->page,
$midgard->host must not be used in the code of the shared admin site.
Thus, asgard opts out. The old admin site works fine, after some minor
changes (I can send you a dump). I would really like to know, if layered
admin works with multidb (see my recent query).
Frank
--
Dr Frank Boehme | Email: [EMAIL PROTECTED]
National University of Ireland, Cork | phone: +353-21-4903163
Dept of Computer Science | fax: +353-21-4903113
Cork, Ireland |
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]