On Fri, Jan 6, 2017 at 2:57 AM, Dai Yinhua <yhdai.2...@gmail.com> wrote:

> Hi Patrik,
>
> From Akka documentation, "Note that *Cluster Sharding*
> <http://doc.akka.io/docs/akka/2.4.12/java/cluster-sharding.html#cluster-sharding-java>
>  is
> using snapshots, so if you use Cluster Sharding you need to define a
> snapshot store plugin."
>

I haven't tested. Isn't it possible to run without snapshot store?


> So I am wondering if akka.persistence.snapshot-store.local can be used as
> the snapshot plugin?
>

It can be used but it doesn't make much sense.


> If it could, how does it work as it's not a distributed storage.
>

When it is started up on another node there will not be any snapshot to
load since the file system is local, then it will replay all events instead.


>
>
> On Thursday, 5 January 2017 22:09:23 UTC+8, Patrik Nordwall wrote:
>>
>> snapshots should only be treated as an optimization, so it should not be
>> necessary to load snapshots.
>>
>> shared-leveldb-journal is only intended for testing, but also for that
>> purpose I would recommend using something real such as
>> akka-persistence-cassandra.
>>
>> /Patrik
>>
>> On Thu, Jan 5, 2017 at 9:34 AM, Dai Yinhua <yhdai...@gmail.com> wrote:
>>
>>> Hi Guys,
>>>
>>> I'm learning Akka cluster sharding with shared leveldb plugin.
>>>
>>> Here is my config:
>>> persistence {
>>>         journal.plugin = "akka.persistence.journal.leveldb-shared"
>>>         journal.leveldb-shared.store {
>>>           # DO NOT USE 'native = off' IN PRODUCTION !!!
>>>           native = off
>>>           dir = "persist/shared-leveldb-journal"
>>>         }
>>>
>>>         #snapshot-store.plugin = "akka.persistence.snapshot-store.local"
>>>         snapshot-store.local.dir = "persist/snapshots"
>>>       }
>>>
>>> But I found that my actor is failed to save screenshot when calling
>>> saveSnapshot API, the journal seems no problem.
>>> And I'm also very curious why there are no things like "shared
>>> snapshot", only "shared journal", with local snapshot, how can cluster
>>> sharding work?
>>>
>>> --
>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/c
>>> urrent/additional/faq.html
>>> >>>>>>>>>> Search the archives: https://groups.google.com/grou
>>> p/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+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Patrik Nordwall
>> Akka Tech Lead
>> Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
>> Twitter: @patriknw
>>
>> --
> >>>>>>>>>> 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.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend <http://www.lightbend.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      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