Hi Muthukumaran,

Please note that using the LevelDB journal is meant for testing, learning 
persistence etc, and not for production, for production you should use a 
real database (Cassandra is a popular distributed example).

--
Johan

On Sunday, July 17, 2016 at 5:00:13 PM UTC+2, Muthukumaran Kothandaraman 
wrote:
>
> Hi, 
>
> I am using a single persistence actor as per example here - 
> http://www.lightbend.com/activator/template/akka-sample-persistence-java#code/src/main/java/sample/persistence/PersistentActorExample.java
>
> I am using plain java serialization and not any snapshotting since I just 
> wanted to evaluate how the dispatcher of LevelDB journal plugin is being 
> used before I could think of other optimizations. 
>
>
> Observation :
> ==========
>
> Connected the profiler by sending 6K commands to the actor to see how the 
> plugin dispatcher is being used. What I observed was that there were 2 
> threads allocated for plugin dispatcher as following. But only one of the 
> thread was being used and not both. 
> Is this behavior specific to LevelDB plugin. For production, I am planning 
> to use Cassandra plugin. But just wanted to understand if observed behavior 
> is due to some sort of "single-writer" enforcement (if any) by LevelDB
>
>
> example-akka.persistence.dispatchers.default-plugin-dispatcher-6 - always 
> idle and gets terminated even before the program completes
> example-akka.persistence.dispatchers.default-plugin-dispatcher-7 - always 
> busy
>
>
> Am I missing something crucial to ensure that all threads of plugin 
> dispatcher is used ?
>
>
> Conf File used 
> ===========
>
> I am using the following application.conf for your reference 
>
> akka.persistence.journal.plugin = "akka.persistence.journal.leveldb"
> akka.persistence.snapshot-store.plugin = 
> "akka.persistence.snapshot-store.local"
>
> akka.persistence.journal.leveldb.dir = "target/example/journal"
> akka.persistence.snapshot-store.local.dir = "target/example/snapshots"
>
> akka.persistence.journal.leveldb.native = false
>
>
> Regards
> Muthu
>
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to