[Xapian-discuss] Xapian over NFS (again...)

shad shad at zaphod.eu
Mon Jun 1 21:39:55 BST 2009


Hi Miki,

thanks for your answer. I will follow your advice about rpc.statd.
What do you think about NFS mount options ? Did you use NFS mounted as
sync ?

About the writes batching, what happened without it ?

Thanks a lot for your help.


On Mon, Jun 1, 2009 at 8:28 PM, Miki Tebeka <miki at fattoc.com> wrote:
> Hello shad,
>
>> I've read some of documentation about xapian over NFS and I have
>> probably found a bug.
>>
>> I use several readers on a xapian index mounted over NFS. I use a
>> try/catch mechanism to reopen database only on modifications
>> (DatabaseModifiedError exception). My software works great on a local
>> filesystem. But I noticed that there is no DatabaseModifiedError
>> exception raised on NFS. So all readers never reopen the database on
>> modifications. I tried some different configurations. For example set
>> NFS mount with sync, noactime. But nothing changed.
>>
>> I ask myself if it's a good thing to reopen the database for each search query.
> I had the same problem, one of the things I found that on linux you should
> have rpc.statd running on the client machine.
>
> Another thing was to batch the writes (I have about 120000 a day), this
> also helped a lot.
>
> Last I switched to running xapian-tcpsrv on the local storage.
>
> All the best,
> --
> Miki Tebeka
> miki at fattoc.com
>



-- 
Samuel Alba



More information about the Xapian-discuss mailing list