[OpenSIPS-Devel] [Fwd: Re: [NEW] Virtual DB module]

Iñaki Baz Castillo ibc at aliax.net
Thu Jul 30 17:51:54 CEST 2009


2009/7/30 Razvan Pistolea <razvy000 at yahoo.com>:
>
> Hi Iñaki,
>
> 1. When in PARALLEL mode and an operation fails the connection to that db url will be closed.
>
> 2. Synchronization between dbs will be lost.
>
> 3. Ways to realize synchronization would be:
> 3a.        save all operations and values (whenever a db fails at least for the duration of the failure)
>                feasible but not desired or required due to the way curent modules use dbs
> 3b.        use database managers (that know how to merge databases)
> 3c.        use a cluster db
>
> 4. A response code at this time is given only if all dbs fail.
> Other modules interpret return codes as: (succes =0 or succes >0 (some) ) and (fail <0) not caring about [partial success].
> So a response != 0 for some modules will mean that the operation failed (even though only some db failed).
> A response code could also be given when failover switches to a new db (even though the operation on the new db succceds).

Thanks for clarify it.


> Could you please explain what do you need the response code for? (there might be other ways to achieve extra operation information)

Forget it. It should be handled as DB level :)



-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Devel mailing list