Re: [ovs-discuss] DB operations in a OVSDB request and Batched requests.

2018-01-17 Thread Ben Pfaff
On Sun, Jan 14, 2018 at 01:41:36PM -0800, Anil Jangam wrote:
> Hi,
> 
> The "transact" method of OVSDB protocol mandates the sequential processing
> of the transaction. It is specificed in section 4.1.3 as follows.
> 
>The database server executes each of the specified operations in
> the specified
>order, except if an operation fails, then the remaining operations
>are not executed.  The set of operations is executed as a single
>atomic, consistent, isolated transaction.  The transaction is
>committed if and only if every operation succeeds.
> 
> 
> In the context of this struct ordering requirement, does OVSDB protocol
> allows for parallel execution of multiple OVSDB request processing?

Yes, from the same client or different clients.

> Does the controller sends multiple requests in parallel, or in other words,
> does it sends one request before receiving the result of the previous
> request?

The controller can send multiple requests before receiving their
results.  Not all controllers take advantage of this.

> JSON_RPC specification 2.0 specifies the BATCH of requests, which can be
> executed in parallel; however, I am not sure if OVSDB protocol recommends
> the use of JSON_RPC 2.0.

The ovsdb-server implementation currently supports only JSON-RPC 1.0.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] DB operations in a OVSDB request and Batched requests.

2018-01-14 Thread Anil Jangam
Hi,

The "transact" method of OVSDB protocol mandates the sequential processing
of the transaction. It is specificed in section 4.1.3 as follows.

   The database server executes each of the specified operations in
the specified
   order, except if an operation fails, then the remaining operations
   are not executed.  The set of operations is executed as a single
   atomic, consistent, isolated transaction.  The transaction is
   committed if and only if every operation succeeds.


In the context of this struct ordering requirement, does OVSDB protocol
allows for parallel execution of multiple OVSDB request processing?

Does the controller sends multiple requests in parallel, or in other words,
does it sends one request before receiving the result of the previous
request?

JSON_RPC specification 2.0 specifies the BATCH of requests, which can be
executed in parallel; however, I am not sure if OVSDB protocol recommends
the use of JSON_RPC 2.0.

Thanks.
/anil.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss