Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » Suggestions

Post new topic   Reply to topic
Varnish Goto page 1, 2  Next
View previous topic :: View next topic  
Author Message
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Tue May 22, 2012 3:59 pm    Post subject: Varnish Reply with quote

I found a slackbuild for this. Do you have any experience in using it? I have an application server running java and many web pages. I thought this might speed it up.

any insights would be appreciated.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Tue May 22, 2012 4:14 pm    Post subject: Reply with quote

Their site it's fast Smile
I didn't know it before, that's a nice suggestion, I'll check it.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Tue May 22, 2012 8:29 pm    Post subject: Reply with quote

yes it is. I checked out a couple of other sites using it and they are very fast.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Tue May 29, 2012 9:01 pm    Post subject: Reply with quote

Added in network series (n).
To test it, just change apache port to 8080, uncomment backend in /etc/varnish/default.vcl and start rc.varnish and apache.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
baboo
Senior Member


Joined: 04 Sep 2007
Posts: 676

PostPosted: Wed May 30, 2012 3:08 pm    Post subject: Reply with quote

thanks! Will test and let you know.
Back to top
View user's profile Send private message
simbad
Senior Member


Joined: 30 Jun 2011
Posts: 106

PostPosted: Wed May 30, 2012 6:48 pm    Post subject: Reply with quote

how to add vanish to startup at boot?
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Wed May 30, 2012 8:07 pm    Post subject: Reply with quote

Make /etc/rc.d/rc.varnishd executable and either upgrade sysvinit-scripts from SMS-Current or add an entry "/etc/rc.d/rc.varnishd start" in rc.local.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
simbad
Senior Member


Joined: 30 Jun 2011
Posts: 106

PostPosted: Thu May 31, 2012 1:37 pm    Post subject: Reply with quote

root@xenya:/etc/varnish# telnet 127.0.0.1 8080
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
quit
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>quit to / not supported.<br />
</p>
</body></html>
Connection closed by foreign host.
root@xenya:/etc/varnish# telnet 127.0.0.1 80
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused


Any sugestion?
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Thu May 31, 2012 1:51 pm    Post subject: Reply with quote

Did you change port in /etc/httpd/httpd.conf?
Code:
Listen 8080
ServerName sms:8080


Did you uncomment backend in /etc/varnish/default.vcl?
Code:
 backend default {
     .host = "127.0.0.1";
     .port = "8080";
 }


Code:
/etc/rc.d/rc.varnish restart
apachectl  restart


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
simbad
Senior Member


Joined: 30 Jun 2011
Posts: 106

PostPosted: Thu May 31, 2012 2:10 pm    Post subject: Reply with quote

Yes, and chmod 755 /etc/varnish/default.vcl

root@xenya:~# /etc/rc.d/rc.varnish restart
-bash: /etc/rc.d/rc.varnish: No such file or directory
root@xenya:~#
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Thu May 31, 2012 2:27 pm    Post subject: Reply with quote

My bad, it' a typo
Code:
chmod +x /etc/rc.d/rc.varnishd
/etc/rc.d/rc.varnishd start


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
simbad
Senior Member


Joined: 30 Jun 2011
Posts: 106

PostPosted: Thu May 31, 2012 2:48 pm    Post subject: Reply with quote

root@xenya:~# /etc/rc.d/rc.varnishd start
starting varnish...
/var/run/varnish.pid: Resource temporarily unavailable
root@xenya:~#
Back to top
View user's profile Send private message
simbad
Senior Member


Joined: 30 Jun 2011
Posts: 106

PostPosted: Thu May 31, 2012 2:49 pm    Post subject: Reply with quote

root@xenya:~# /etc/rc.d/rc.varnishd start
/etc/rc.d/rc.varnishd: line 44: [: 2726: unary operator expected
/etc/rc.d/rc.varnishd: line 48: /var/run/varnish.pid exists but pid doesn't match pid of varnishd. please investigate.: No such file or directory
root@xenya:~#
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Thu May 31, 2012 2:55 pm    Post subject: Reply with quote

Code:
killall -9 varnishd
rm -f /var/run/varnish.pid
/etc/rc.d/rc.varnishd start


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
simbad
Senior Member


Joined: 30 Jun 2011
Posts: 106

PostPosted: Thu May 31, 2012 4:27 pm    Post subject: Reply with quote

Code:


root@xenya:~# ./etc/rc.d/rc.varnishd start
-bash: ./etc/rc.d/rc.varnishd: No such file or directory
root@xenya:~# clear
root@xenya:~# killall -9 varnishd
varnishd: no process found
root@xenya:~# rm -f /var/run/varnish.pid
root@xenya:~# /etc/rc.d/rc.varnishd start
starting varnish...
Message from C-compiler:
gcc: error trying to exec 'as': execvp: No such file or directory
Running C-compiler failed, exit 1

VCL compilation failed
root@xenya:~#

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » Suggestions All times are GMT + 2 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional