Closed
Bug 460213
Opened 16 years ago
Closed 16 years ago
Deploy Sphinx to production
Categories
(support.mozilla.org :: Knowledge Base Software, task)
support.mozilla.org
Knowledge Base Software
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: nkoth, Assigned: chizu)
References
Details
(Whiteboard: waiting on webdev)
Attachments
(1 file)
2.03 KB,
text/plain
|
Details |
This is basically the first cut of the sumo search engine that should be fully functioning with memcache, but not optimized in any way yet. Must make 0.7.2 push.
Reporter | ||
Updated•16 years ago
|
Summary: Deploy new sumo search engine to production → Deploy unoptimized new sumo search engine to production
Reporter | ||
Updated•16 years ago
|
Summary: Deploy unoptimized new sumo search engine to production → Deploy new sumo search engine to production
Target Milestone: 0.7.2 → 0.7.3
Reporter | ||
Comment 1•16 years ago
|
||
Invalid: do not really need all the initial changes in production to test (although parts will be in there, not everything will make it by 0.7.2 anyway).
(In reply to comment #0)
> This is basically the first cut of the sumo search engine that should be fully
> functioning with memcache, but not optimized in any way yet. Must make 0.7.2
> push.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Target Milestone: 0.7.3 → 0.7.2
Comment 2•16 years ago
|
||
Verified, but I don't know why we couldn't have just left this open until we needed it.
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 4•16 years ago
|
||
This bug is now tracking the deployment of Sphinx to production.
Target Milestone: 0.7.2 → 0.8
Reporter | ||
Comment 5•16 years ago
|
||
Trevor,
Is Sphinx only on one webhead in production? https://bugzilla.mozilla.org/show_bug.cgi?id=464136#c13
Does this mean if I configure search to look for localhost port 3312, it won't work?
Do we want to do load testing (bug 460216) and then figure out how to configure a sphinx cluster (http://www.sphinxsearch.com/doc.html#distributed )? Or do we want to install Sphinx on all webheads?
Summary: Deploy new sumo search engine to production → Deploy Sphinx to production
It's on one webhead in production right now, so localhost will not work as is. There should be some load testing to decide if we need to partition or if simply deploying it on a few nodes for redundency can work. I think it's best to avoid deploying sphinx on all of them.
Comment 7•16 years ago
|
||
Trevor, what kind of load testing did you have in mind? We have a bug as per https://bugzilla.mozilla.org/show_bug.cgi?id=460216 but I don't think that's going to be specific enough for your needs.
Comment 8•16 years ago
|
||
Nelson, who should this bug be assigned to? Trevor?
Reporter | ||
Comment 9•16 years ago
|
||
Trevor, if sphinxd is only on certain webheads, is there a load balancer address/port that we should be using?
Laura, the $host and $port that the search is using is currently in webroot/tiki-newsearch.php. Need a change in that to point to whatever is correct.
Also, perhaps we should move it out into scripts/sphinx/search.conf.php, which is included in tiki-newsearch.php?
Assignee | ||
Comment 10•16 years ago
|
||
The load balancer address and port should be moved to a config file. It's likely IT will need to adjust this from time to time, and a seperate local file prevents svn conflicts.
Reporter | ||
Comment 11•16 years ago
|
||
I've created Bug 470365 for this and put it as 0.8.1. For now you can edit tiki-newsearch.php, right?
That way, we can figure out where the config file will be and all that in 0.8.1.
(In reply to comment #10)
> The load balancer address and port should be moved to a config file. It's
> likely IT will need to adjust this from time to time, and a seperate local file
> prevents svn conflicts.
Assignee | ||
Comment 12•16 years ago
|
||
Sphinx is deployed on production using round robin load balancing, but searchd isn't running.
# /usr/bin/php manual_index.php
Unknown column 'tiki_pages.keywords' in 'field list'
This errors out as in bug 468601:
# sudo -u apache /usr/bin/indexer --all
ERROR: index 'documents': source 'documents': XML parse error: no element found (line=2, pos=15, docid=0).
# sudo -u apache /usr/bin/searchd
WARNING: index 'documents': preload: failed to open /usr/local/sphinx/index/documents.sph: No such file or directory; NOT SERVING
Reporter | ||
Comment 13•16 years ago
|
||
I think you might have forgotten to run https://bugzilla.mozilla.org/attachment.cgi?id=346962 on production.
Assignee | ||
Comment 14•16 years ago
|
||
Yep, missed that in my deploy notes from stage. That's now run.
Comment 16•16 years ago
|
||
Let's not run the indexer in prod again until we've tested it properly (Trevor, maybe you can help out with this on the test cluster?). Dave had to truncate the se_words table this morning as it was bringing down the cluster.
Assignee | ||
Comment 17•16 years ago
|
||
I've disabled the indexer cron job in production.
Reporter | ||
Updated•16 years ago
|
Target Milestone: 0.8 → 0.8.1
Reporter | ||
Comment 18•16 years ago
|
||
this refers to bug 470550
(In reply to comment #16)
> Let's not run the indexer in prod again until we've tested it properly (Trevor,
> maybe you can help out with this on the test cluster?). Dave had to truncate
> the se_words table this morning as it was bringing down the cluster.
Reporter | ||
Comment 19•16 years ago
|
||
Remember to configure scripts/sphinx/search.conf.php (not in svn) to point to searchd loadbalancer address/port
Updated•16 years ago
|
Target Milestone: 0.8.1 → 0.8.2
Updated•16 years ago
|
Target Milestone: 0.8.2 → 0.9
Reporter | ||
Comment 20•16 years ago
|
||
Follow these instructions to do a first time indexing. These were tested on the load test cluster.
Updated•16 years ago
|
Whiteboard: waiting on webdev
Updated•16 years ago
|
Target Milestone: 0.9 → 1.0
Comment 21•16 years ago
|
||
Little confused on what the next IT steps on this are. Is this being wrapped up into another SUMO release?
Comment 22•16 years ago
|
||
No, we'll do it between releases in a maintenance window. The code is all in prod already, just not turned on yet.
Comment 23•16 years ago
|
||
(In reply to comment #22)
> No, we'll do it between releases in a maintenance window. The code is all in
> prod already, just not turned on yet.
Un-targeting from 1.0 per comment 22.
Target Milestone: 1.0 → ---
Comment 24•16 years ago
|
||
Is there a schedule for this deployment? Can this bug be closed and re-opened when ready?
Assignee | ||
Comment 25•16 years ago
|
||
Comment #20's instructions have been setup in production, but do not automatically run. Please reopen when we need to coordinate enabling this application side in production and having it run regularly.
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•