Bug 1234385

Summary: Exclude /srv/node from updatedb.conf to ignore Swift storage
Product: Red Hat Enterprise Linux 7 Reporter: Christian Schwede (cschwede) <cschwede>
Component: mlocateAssignee: Frantisek Kluknavsky <fkluknav>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: amarts, bugs, cschwede, derekh, fharshav, msekleta, nkinder, pavan, rmeggins, sac, scohen, vijay, vraman, yeylon, zaitcev
Target Milestone: pre-dev-freeze   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: GLUSTER-538 Environment:
Last Closed: 2016-02-03 13:36:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Schwede (cschwede) 2015-06-22 12:57:51 UTC
By default the periodic updatedb process also incluses Swift storage files, and this affects performance quite a bit. It's likely that this is not required, thus excluding the default path /srv/node from the updatedb process is probably a good idea.

In /etc/updatedb.conf:

PRUNEPATHS="... /tmp ... /var/spool ... /srv/node"

Submitted upstream doc change: https://review.openstack.org/194126 

A note to the manual setup guide (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/6/html/Deploying_OpenStack_Learning_Environments/index.html) should be added as well.

Comment 3 Pete Zaitcev 2015-12-01 03:44:39 UTC
Let's have mlocate maintainer to consider this request.

BTW, the names look sorted, so /srv/node goes between /sfc and /tmp.

Comment 4 Frantisek Kluknavsky 2015-12-08 15:59:24 UTC
This seems to me as something admin should deliberately configure, not a default. /srv/node is not necessarily Swift. A lot of things can be under /srv/node. Especially with the popularity of node.js, people might really want /srv/node indexed. The world is bigger than just OpenStack.

As an operating system distribution, RHEL is not supposed to impose structure on /srv.

(after consultation with msekleta): A setup where you want *some* nodes indexed is also imaginable. /srv/node seems to be too general.

Close notabug?