[jira] [Commented] (JAMES-1634) Slow Cassandra tests

2015-11-04 Thread Matthieu Baechler (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14989133#comment-14989133
 ] 

Matthieu Baechler commented on JAMES-1634:
--

Hi Benoit,
That would be great ... but it actually doesn't give us the expected speedup 
(almost same execution times)
I just tried to have some figures about "how much" before talking about "how 
to". It's definitively not worth it.
[~aduprat] you should make this ticket more specific and close it.

> Slow Cassandra tests
> 
>
> Key: JAMES-1634
> URL: https://issues.apache.org/jira/browse/JAMES-1634
> Project: James Server
>  Issue Type: Bug
>Reporter: Antoine Duprat
>
> Cassandra tests are slow, tables creation takes approximatively 25 seconds.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Commented] (JAMES-1634) Slow Cassandra tests

2015-11-03 Thread Tellier Benoit (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14988509#comment-14988509
 ] 

Tellier Benoit commented on JAMES-1634:
---

Hi the team :-)

With the solution you propose you habe a speed up of ~5. That's good but still 
slow ( ~ 10 min tests for all Cassandra tests).

My suggestion (maybe quite crazy, but maybe you'll like it !) 

 - us a ramdisk for cassandra-unit storage. This test does this : 
http://www.planetcassandra.org/blog/reduce-integration-test-time-by-94-by-using-ramdisk/

Ok, but creating a ram disk is complicated. Mount command can be used inside 
docker using –privileged option. 

So the idea is to mount the RAM disk in docker and expose an ENV variable.
If the ENV variable is present, we use the yaml to configure cassandra-unit to 
use the RAM disk. If not we launch it normaly.

Don't know if this is easily doable and if you'll have the time to do this, but 
this is worth mentionning ;-)

> Slow Cassandra tests
> 
>
> Key: JAMES-1634
> URL: https://issues.apache.org/jira/browse/JAMES-1634
> Project: James Server
>  Issue Type: Bug
>Reporter: Antoine Duprat
>
> Cassandra tests are slow, tables creation takes approximatively 25 seconds.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org