Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Does the CDO Server product allow for gzip compression?
[CDO] Does the CDO Server product allow for gzip compression? [message #1722092] Tue, 02 February 2016 17:16 Go to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

Hello all,

I've started developing a CDO compatibility plugin for the Epsilon languages [1, 2] and it is working nicely, but I would like to try enabling GZIP compression and see if it helps as well. I see that there is a GZIPStreamWrapper and a GZIPStreamWrapperInjector classes that I could use, and this thread mentions the setStreamWrapper/addStreamWrapper methods:

https://www.eclipse.org/forums/index.php/m/991500/?srch=compression+cdo#msg_991500

However, I assume I'd need to use them both in the server and the client. So far, I'm using the standard CDO Server product (as configured by Oomph), and I don't see any way to configure it to enable gzip compression. Would I need to roll my own product/application and add the GZIPStreamWrapperInjector myself?

[1]: http://eclipse.org/epsilon
[2]: https://github.com/epsilonlabs/emc-cdo

Kind regards,
Antonio

[Updated on: Tue, 02 February 2016 17:17]

Report message to a moderator

Re: [CDO] Does the CDO Server product allow for gzip compression? [message #1722096 is a reply to message #1722092] Tue, 02 February 2016 17:59 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Antonio,

Currently there's no way to configure the transport with stream wrappers via the cdo-server.xml.

It would be great to have that. Maybe you want to work on a Gerrit contribution for that? A good start point is the
org.eclipse.net4j.TransportConfigurator.configureAcceptor(Element) method.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 02.02.2016 um 18:16 schrieb Antonio Garcia-Dominguez:
> Hello all,
>
> I've started developing a CDO compatibility plugin for the Epsilon languages [1] and it is working nicely, but I would
> like to try enabling GZIP compression and see if it helps as well. I see that there is a GZIPStreamWrapper and a
> GZIPStreamWrapperInjector classes that I could use, and this thread mentions the setStreamWrapper/addStreamWrapper
> methods:
>
> https://www.eclipse.org/forums/index.php/m/991500/?srch=compression+cdo#msg_991500
>
> However, I assume I'd need to use them both in the server and the client. So far, I'm using the standard CDO Server
> product (as configured by Oomph), and I don't see any way to configure it to enable gzip compression. Would I need to
> roll my own product/application and add the GZIPStreamWrapperInjector myself?
>
> [1]: https://github.com/epsilonlabs/emc-cdo
>
> Kind regards,
> Antonio
>
>


Re: [CDO] Does the CDO Server product allow for gzip compression? [message #1722248 is a reply to message #1722096] Wed, 03 February 2016 15:31 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
Senior Member

I'll have a try once I get some time to work on it Smile. Thanks for the info!
Re: [CDO] Does the CDO Server product allow for gzip compression? [message #1722353 is a reply to message #1722248] Thu, 04 February 2016 09:21 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
Le 03/02/2016 16:31, Antonio Garcia-Dominguez a écrit :
> I'll have a try once I get some time to work on it :). Thanks for the info!

Note that there is already a proposed patch by Esteban here:
https://git.eclipse.org/r/#/c/60937/


--
Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: [CDO] Does the CDO Server product allow for gzip compression? [message #1722361 is a reply to message #1722353] Thu, 04 February 2016 09:58 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 04.02.2016 um 10:21 schrieb Pierre-Charles David:
> Le 03/02/2016 16:31, Antonio Garcia-Dominguez a écrit :
>> I'll have a try once I get some time to work on it :). Thanks for the info!
>
> Note that there is already a proposed patch by Esteban here: https://git.eclipse.org/r/#/c/60937/
Good point!

But I thought that review/bugzilla was about configuring the server-side stream wrapping on a case by case basis
according to what the client actually used. My previous proposal was more about configuring it for all connections
through a particular acceptor, explicitely with new XML markup. That seems a little simpler to implement as it wouldn't
affect the client or the protocol between client and server.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] Does the CDO Server product allow for gzip compression? [message #1722368 is a reply to message #1722361] Thu, 04 February 2016 10:28 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
Le 04/02/2016 10:58, Eike Stepper a écrit :
> Am 04.02.2016 um 10:21 schrieb Pierre-Charles David:
>> Note that there is already a proposed patch by Esteban here:
>> https://git.eclipse.org/r/#/c/60937/
> Good point!
>
> But I thought that review/bugzilla was about configuring the server-side
> stream wrapping on a case by case basis according to what the client
> actually used. My previous proposal was more about configuring it for
> all connections through a particular acceptor, explicitely with new XML
> markup.

From the commit message, it seems the patch adds support for this kind
of things in the XML config:

<acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
<streamWrapper type="gzip"
protocol="cdo"
description="bufferSize:256"/>
</acceptor>

Which looks like "configuring it for all connections through a
particular acceptor, explicitely with new XML markup". Or maybe I'm
missing something (which is very possible)?

--
Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: [CDO] Does the CDO Server product allow for gzip compression? [message #1722369 is a reply to message #1722368] Thu, 04 February 2016 10:35 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 04.02.2016 um 11:28 schrieb Pierre-Charles David:
> From the commit message, it seems the patch adds support for this kind of things in the XML config:
>
> <acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
> <streamWrapper type="gzip"
> protocol="cdo"
> description="bufferSize:256"/>
> </acceptor>
>
> Which looks like "configuring it for all connections through a particular acceptor, explicitely with new XML markup".
Indeed, that looks very similar.

> Or maybe I'm missing something (which is very possible)?
No, I must have confused it ;-)

I'll ask Esteban sometime soon, jut to be sure. Thanks again for pointing it out.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] Does the CDO Server product allow for gzip compression? [message #1722533 is a reply to message #1722353] Fri, 05 February 2016 13:39 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 04.02.2016 um 10:21 schrieb Pierre-Charles David:
> Note that there is already a proposed patch by Esteban here: https://git.eclipse.org/r/#/c/60937/
We've finished that patch now and it's available in the next build. Feedback is welcome ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:XSD to Ecore
Next Topic:[CDO] DBException: Schema Locked with forceIndexes
Goto Forum:
  


Current Time: Thu Apr 25 06:20:43 GMT 2024

Powered by FUDForum. Page generated in 0.03608 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top