rick (owner)

Revisions

gist: 135580 Download_button fork
public
Public Clone URL: git://gist.github.com/135580.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
The command to find the process of interest:
 
byggvir:/etc/postfix# ps auxwww | grep searchd | grep /opt/ogc/var/www/php.ogtastic.com
ogc 19653 0.0 0.0 15120 932 ? S Jun23 0:00 searchd --pidfile --config /opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf
 
 
To start:
 
byggvir:/etc/postfix# cd /opt/ogc/var/www/php.ogtastic.com/current
byggvir:/opt/ogc/var/www/php.ogtastic.com/current# RAILS_ENV=production /usr/bin/rake ts:in ts:run
 
(sample output: .... )
 
(in /opt/ogc/var/www/php.ogtastic.com/releases/20090624034441)
Generating Configuration to /opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf
Sphinx 0.9.9-rc2 (r1785)
Copyright (c) 2001-2009, Andrew Aksyonoff
 
using config file '/opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf'...
WARNING: key 'address' is deprecated in /opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf line 7; use 'listen' instead.
WARNING: key 'port' is deprecated in /opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf line 8; use 'listen' instead.
indexing index 'customer_core'...
collected 23798 docs, 0.6 MB
collected 0 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.1 Mhits, 100.0% done
total 23798 docs, 638837 bytes
total 0.822 sec, 776655 bytes/sec, 28932.01 docs/sec
distributed index 'customer' can not be directly indexed; skipping.
indexing index 'family_core'...
collected 820 docs, 0.0 MB
collected 0 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.0 Mhits, 100.0% done
total 820 docs, 20752 bytes
total 0.150 sec, 138297 bytes/sec, 5464.73 docs/sec
distributed index 'family' can not be directly indexed; skipping.
indexing index 'prelude_product_core'...
collected 36195 docs, 1.6 MB
collected 0 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.3 Mhits, 100.0% done
total 36195 docs, 1639324 bytes
total 0.962 sec, 1702956 bytes/sec, 37599.96 docs/sec
distributed index 'prelude_product' can not be directly indexed; skipping.
indexing index 'product_core'...
collected 36390 docs, 2.6 MB
collected 0 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.5 Mhits, 100.0% done
total 36390 docs, 2603158 bytes
total 11.784 sec, 220900 bytes/sec, 3087.99 docs/sec
distributed index 'product' can not be directly indexed; skipping.
total 54 reads, 0.011 sec, 187.6 kb/call avg, 0.2 msec/call avg
total 47 writes, 0.030 sec, 441.0 kb/call avg, 0.6 msec/call avg
rotating indices: succesfully sent SIGHUP to searchd (pid=19653).
Sphinx 0.9.9-rc2 (r1785)
Copyright (c) 2001-2009, Andrew Aksyonoff
 
using config file '/opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf'...
WARNING: key 'address' is deprecated in /opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf line 7; use 'listen' instead.
WARNING: key 'port' is deprecated in /opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf line 8; use 'listen' instead.
stop: succesfully sent SIGTERM to pid 19653
Stopped search daemon (pid 19653).
cat: /opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/log/searchd.production.pid: No such file or directory
Sphinx 0.9.9-rc2 (r1785)
Copyright (c) 2001-2009, Andrew Aksyonoff
 
using config file '/opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf'...
WARNING: key 'address' is deprecated in /opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf line 7; use 'listen' instead.
WARNING: key 'port' is deprecated in /opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf line 8; use 'listen' instead.
listening on 127.0.0.1:3312
Started successfully (pid 29708).
byggvir:/opt/ogc/var/www/php.ogtastic.com/current# ps auxwww | grep searchd
root 29708 0.0 0.0 15120 880 pts/0 S 19:13 0:00 searchd --pidfile --config /opt/ogc/var/www/php.ogtastic.com/releases/20090624034441/config/production.sphinx.conf
root 29723 0.0 0.0 3004 712 pts/0 S+ 19:14 0:00 grep searchd
byggvir:/opt/ogc/var/www/php.ogtastic.com/current#
 
 
 
 
 
 
to stop:
 
 
byggvir:/etc/postfix# cd /opt/ogc/var/www/php.ogtastic.com/current
byggvir:/opt/ogc/var/www/php.ogtastic.com/current# RAILS_ENV=production /usr/bin/rake ts:stop