On 7 August 2015 at 18:47, Hao <[email protected]> wrote:
> Single node with search=on, I previously indexed 2 map objects. Then I did
> a restore of my previous bitcask folder. I can see newly created bucket
> type still there. And when I search by index, the index data are also
> there. So I removed the index folder (under
> /var/lib/riak/yz/todoriak_main_movie_idx/data ) , riak should start to
> index anew. But it turned out, no.The index folder was re-created by Riak
> though.
>
> When I search by index, I still see the old 2 map objects. And when I add
> new objects, they are not indexed at all. Always the old 2 map objects only.
>
> I thought AAE will fix index. No? Is the AAE only for cluster?
> What can I do now? Delete index and re-create? What's the business of
> re-attach?
>
> Thank you
> -Hao
>
Hi Hao,
Riak's search AAE should eventually re-index your data. However, by default
AAE trees are rebuilt only once a week, and then only one tree is rebuilt
per hour on each node. It is possible to speed this up, though.
On one node, run 'riak attach'. Then, at the Erlang console run
riak_core_util:rpc_every_member_ann(application, set_env, [riak_kv,
anti_entropy_build_limit, {4, 3600000}], 60).
riak_core_util:rpc_every_member_ann(application, set_env, [riak_kv,
anti_entropy_concurrency, 4], 60).
riak_core_util:rpc_every_member_ann(application, set_env, [yokozuna,
anti_entropy_build_limit, {4, 3600000}], 60).
riak_core_util:rpc_every_member_ann(application, set_env, [yokozuna,
anti_entropy_concurrency, 4], 60).
The above will allow concurrent rebuilding of up to 4 trees per node per
hour. Be careful not to increase this too much on production systems. To
force expiration of the search AAE trees you can then run in the Erlang
console
riak_core_util:rpc_every_member_ann(yz_entropy_mgr, expire_trees, [], 60).
Hope this helps.
Regards,
Magnus
--
Magnus Kessler
Client Services Engineer @ Basho
Registered Office - 8 Lincoln’s Inn Fields London WC2A 3BP Reg 07970431
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com