Welcome Guest ( Log In | Register )

5 Pages V < 1 2 3 4 > »   
Reply to this topicStart new topic
> H@H Client "Performance" on VPS

 
post Dec 31 2012, 03:21
Post #21
StonyCat



Retired
*******
Group: Catgirl Camarilla
Posts: 2,487
Joined: 31-March 12
Level 500 (Dovahkiin)


QUOTE(Tenboro @ Dec 31 2012, 06:06) *

That's the virtual memory space. The actual resident memory is only a small fraction of that. (Assuming you're not running something silly like OpenVZ on pre-CentOS 6, which assumes virtual space = actual space.)

My home server is Windows 7. BTW just dropped you a PM that I want a few more H@H client slots. (IMG:[invalid] style_emoticons/default/tongue.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 05:52
Post #22
HTTP/308



Lurking
*******
Group: Catgirl Camarilla
Posts: 1,087
Joined: 8-April 10
Level 498 (Godslayer)


QUOTE(Ichy @ Dec 31 2012, 00:57) *

Bytesized Binge boxes give you~10 hath/day for 17$ each month.

Isn't it 17 EUR?

QUOTE
At some point I will switch over to my own personal Server for crazy hath generation ala g just g (IMG:[invalid] style_emoticons/default/ohmy.gif)
But still need to learn some more linux first before I get myself a super awesome server.

$34 dedicated server?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 13:33
Post #23
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


QUOTE(HTTP/308 @ Dec 31 2012, 05:52) *

Isn't it 17 EUR?
$34 dedicated server?

Yes Euro, my mistake.

I was looking around a bit and found [www.fasthosts.co.uk] this.
Comes with 2 IP addresses and can even more for cheap.
You guys think I should try one of them. Not sure which one I should get and how many Clients these baby can run.
Any suggestions?

This post has been edited by Ichy: Dec 31 2012, 13:55
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 15:21
Post #24
StonyCat



Retired
*******
Group: Catgirl Camarilla
Posts: 2,487
Joined: 31-March 12
Level 500 (Dovahkiin)


QUOTE(Ichy @ Dec 31 2012, 19:33) *

Yes Euro, my mistake.

I was looking around a bit and found [www.fasthosts.co.uk] this.
Comes with 2 IP addresses and can even more for cheap.
You guys think I should try one of them. Not sure which one I should get and how many Clients these baby can run.
Any suggestions?

Hm... How to get multiple H@H Clients running on a single OS referring to multiple IPs? Or you mean creating further VMs on it?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 15:30
Post #25
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


QUOTE(mnching @ Dec 31 2012, 15:21) *

Hm... How to get multiple H@H Clients running on a single OS referring to multiple IPs? Or you mean creating further VMs on it?

Yep I would try to run multiple Clients on one Server. Since there is plenty of Space and IPs are fairly cheap it is all a question of which server to chose and how many IPs. Or get 2 of the smallest ones if this is more profitable. Decisions Decisions (IMG:[invalid] style_emoticons/default/unsure.gif)

This post has been edited by Ichy: Dec 31 2012, 15:32
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 16:43
Post #26
StonyCat



Retired
*******
Group: Catgirl Camarilla
Posts: 2,487
Joined: 31-March 12
Level 500 (Dovahkiin)


QUOTE(Ichy @ Dec 31 2012, 21:30) *

Yep I would try to run multiple Clients on one Server. Since there is plenty of Space and IPs are fairly cheap it is all a question of which server to chose and how many IPs. Or get 2 of the smallest ones if this is more profitable. Decisions Decisions (IMG:[invalid] style_emoticons/default/unsure.gif)

May sound good but how? I mean, running 2 instances (or more) on same OS may be OK, but how to tell instance 1 to use IP 1, instance 2 to use IP 2, and so on...?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 16:48
Post #27
The Evil Phoenix



Fiery Avian Overlord
*******
Group: Gold Star Club
Posts: 1,844
Joined: 2-December 09
Level 238 (Godslayer)


QUOTE(mnching @ Dec 31 2012, 08:21) *

Hm... How to get multiple H@H Clients running on a single OS referring to multiple IPs? Or you mean creating further VMs on it?



QUOTE(Ichy @ Dec 31 2012, 08:30) *

Yep I would try to run multiple Clients on one Server. Since there is plenty of Space and IPs are fairly cheap it is all a question of which server to chose and how many IPs. Or get 2 of the smallest ones if this is more profitable. Decisions Decisions (IMG:[invalid] style_emoticons/default/unsure.gif)



QUOTE(mnching @ Dec 31 2012, 09:43) *

May sound good but how? I mean, running 2 instances (or more) on same OS may be OK, but how to tell instance 1 to use IP 1, instance 2 to use IP 2, and so on...?



Only way I got that working was a shitty KVM setup, and then use IP routing to route from hostNode -> VMs. Its how one server of mine runs two H@H clients. It's also a nifteh way to isolate H@H and H@H and my web server stuff from each other. AFAIK you can't tell H@H to bind to a specific external IP, not easily, which is why I went the VMs route. Unless Tenb forgot to write up part of the documentation, in which case... OYI TENBORO, DID YOU FORGET TO INCLUDE THIS AS A FUNCTION?

The downside: the datacenter has to support such a setup. Not all of them support this.

This post has been edited by The Evil Phoenix: Dec 31 2012, 16:52
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 16:51
Post #28
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


QUOTE(mnching @ Dec 31 2012, 16:43) *

May sound good but how? I mean, running 2 instances (or more) on same OS may be OK, but how to tell instance 1 to use IP 1, instance 2 to use IP 2, and so on...?

G just G knows (IMG:[invalid] style_emoticons/default/biggrin.gif)

QUOTE
so you'll want to create 5 users

command is: adduser <name> in the steps I'm sending you you'll want to use h1,h2,h3,h4,h5 etc

you'll want to place your H@H clients in the home folders of the users then navigate to each users folder and type. When you buy your xirvik server and add the ssd ask them to please mount the SSD as /ssd
"ln -s /ssd/cache1 cache"
then chance to the next H@H home folder (ie. h2) and do
"ln -s /ssd/cache2 cache"
each time you'll be incriminating the /ssd/cache number.

THEN you'll need to type the following after you're done with cache 1-5
chmod 7777 /ssd -R
this will set permission to allow any user to write on that drive.


then type this
iptables -t nat -A POSTROUTING -m owner --uid-owner h1 -j SNAT --to-source <ip address>
iptables -t nat -A POSTROUTING -m owner --uid-owner h2 -j SNAT --to-source <ip address>
iptables -t nat -A POSTROUTING -m owner --uid-owner h3 -j SNAT --to-source <ip address>
iptables -t nat -A POSTROUTING -m owner --uid-owner h4 -j SNAT --to-source <ip address>
iptables -t nat -A POSTROUTING -m owner --uid-owner h5 -j SNAT --to-source <ip address>

so that command tells anything run by the user (h1-h5) to run on <ip address> just change that to whatever you need. Then as the "root" user run the following commands..

open "screen"
once you've got screen open type screen 5 more times... guide each of them into the individual H@H folders for each one you want to run.

sudo -u h1 java -jar HentaiAtHome.jar --disable_logging --disable_bwm --max_connections=400
sudo -u h2 java -jar HentaiAtHome.jar --disable_logging --disable_bwm --max_connections=400
sudo -u h3 java -jar HentaiAtHome.jar --disable_logging --disable_bwm --max_connections=400
sudo -u h4 java -jar HentaiAtHome.jar --disable_logging --disable_bwm --max_connections=400
sudo -u h5 java -jar HentaiAtHome.jar --disable_logging --disable_bwm --max_connections=400


complicated yes but it's the only way to make it work
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 17:10
Post #29
StonyCat



Retired
*******
Group: Catgirl Camarilla
Posts: 2,487
Joined: 31-March 12
Level 500 (Dovahkiin)


QUOTE(Ichy @ Dec 31 2012, 22:51) *

G just G knows (IMG:[invalid] style_emoticons/default/biggrin.gif)

Oh, so again Unix only. It should have a very high chance being beneficial than running a single instance, but I also wonder how many instances a dedicated server can afford.

Hm... and, for those H@H parameters, are "--disable_logging" and "--disable_bwm" useful? And why max_connections=400?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 17:24
Post #30
G Just G



Casual Poster
****
Group: Members
Posts: 415
Joined: 27-October 08
Level 184 (Lord)


What no that's Linux/Unix - are you running Windows? I'm way better with Windows.

I ended up being forced to specify max connections on my system because they're set at 1GB/s which ended up costing me Trust. The net connection was more than fast enough (10Gb/s) but the hard drive I/O was so high that nothing was getting served.


Windows!

Open up network connection settings (Control Panel\Network and Internet\Network Connections)
right click properties on your connection
select tcp/ip v4
goto advanced
See where it says IP Settings? hit add and fill away.

Follow this:
[benchmark3d.com] http://benchmark3d.com/bind-an-ip-to-an-application-tuorial


Windows is completely capable of doing it without a third party program but it's way more complicated then I want to explain so the program is easier.

A 100Mb/s can run 3 to 4 connections. a GB/s connection can run 3 per HDD.

Had to move all my servers a little while back.
Primary Complaint:
Cache's why you build so slowly?


This post has been edited by G Just G: Dec 31 2012, 18:10
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 17:33
Post #31
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


You think the DS710i Server can run 4-5 Clients or should I choose the moar powerful one?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 17:38
Post #32
G Just G



Casual Poster
****
Group: Members
Posts: 415
Joined: 27-October 08
Level 184 (Lord)


H@H need to no processing power, memory, or anything else. It needs hard drives.
Updated previous post.

This post has been edited by G Just G: Dec 31 2012, 17:39
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 17:52
Post #33
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


Your hath generation powers make me jelly! (IMG:[invalid] style_emoticons/default/wacko.gif)


soooo that means even the smallest one will do for 3-4 Clients. Or better just 2 and let heave each his own little 250 GB hard disk drive (IMG:[invalid] style_emoticons/default/blink.gif) This could become more cheaper than I thought.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 18:08
Post #34
G Just G



Casual Poster
****
Group: Members
Posts: 415
Joined: 27-October 08
Level 184 (Lord)


Just never exceed 2 per hard drive. but H@H will max out a 100Mb/s connection with just 3 clients. I've taken to running 1 on the main drive and 2 on each secondary as you'll sometimes lose trust because of the disk IO times. Keeping the main drive less busy helps when you need to do work on the OS. That and you can then host torrents by using a program like transmission-daemon

(IMG:[s14.directupload.net] http://s14.directupload.net/images/121231/4xg4dxc6.png)

The top one is 3 clients running on a 100Mb/s server with 83GB caches. The bottom one is 3 clients on a 1Gb/s server with 83GB caches.

As you can see the 100Mb/s connection is actually maxed out and is actually overloaded by 10Mb/s. If I were to run a 4th client it would start dropping trust.


The bandwidth monitoring program is nload

apt-get install nload

then just type nload (you may need to sudo nload)

This post has been edited by G Just G: Dec 31 2012, 18:18
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 31 2012, 23:35
Post #35
G Just G



Casual Poster
****
Group: Members
Posts: 415
Joined: 27-October 08
Level 184 (Lord)


I would however hope that Tenboro changes H@H to allow it to have more connections. Running multiple clients on a server with multiple IP's is a bit silly. It's required as H@H was never built for 100/1000/10000Mb/s connections.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 1 2013, 01:39
Post #36
Tenboro

Admin




You know, running with a speed override implies that you should never allow the connection to max. You'll have to reduce the disk space allotment to make it so it never caps, or I'll have to remove the overrides.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 1 2013, 05:23
Post #37
G Just G



Casual Poster
****
Group: Members
Posts: 415
Joined: 27-October 08
Level 184 (Lord)


I've been reducing it on the 100Mb/s server. The 10Gb/s servers have never exceeded 200Mb/s. I've not seen the 100Mb/s servers drop below 1000 trust since I moved to the faster servers. The 100Mb/s server is actually capable of doing 103.53Mb/s and since I reduced the cache's it's never exceeded 91Mb/s and has an average speed which is still dropping. The new average is 5.47 In and 74.72 Out.

When I said "As you can see the 100Mb/s connection is actually maxed out and is actually overloaded by 10Mb/s." it's actually just a mistype from the way I make my posts (twenty edits at a time). What it should say is "As you can see the 100Mb/s connection is actually maxed out and is actually 10Mb/s from overload." --- I was attempting to show why you want to stick to 3 H@H clients at the most on a single server when on a 100Mb/s connection.

What I had noticed was the Trust would start dropping during peak US times at night. Which is the primary reason I started dropping the cache sizes. They used to be 200GB, 200Gb and 85GB now they're 70GB, 70GB, and 30Gb. Outside of nload's ability to give me current, average, and maximums and H@H's trust measurement I have no way to see if the server is overloading. I've been using a simple "If the speed exceeds a combined speed of 90Mb/s drop cache size". Over the past few nights I think I've gotten it so that the trust of the 100Mb/s servers aren't going negative.
(IMG:[s7.directupload.net] http://s7.directupload.net/images/130101/jrwrruqy.png)
100Mb/s server - US based


The three 10Gb/s server have average speeds of 215.62Mb/s, and 43.23Mb/s (this is the new server that's building caches). My end goal is to actually close down the 100Mb/s servers and transfer over to the 10Gb/s lines as I've got access to one in Chicago, France, and Luxembourg.


Actually one question on the servers: If the server is overloaded I would see it happen by the Trust falling correct? So long as it stays in the positive range (800+) I assume I'm good to continue running with my current setup? Since I've been reducing caches on the slow server they've never gone into the sub 700 range.


If there's a concern I haven't addressed with this post, or If I haven't shown you that I'm monitoring the servers to make sure they're optimal and will in no way affect users of the E-Hentai galleries, please send me a PM and I'll configure the clients in anyway you wish. The servers gave me a way to learn various skills which is why I set them up and H@H is a way I can give back to a website I enjoy.

This post has been edited by G Just G: Jan 1 2013, 05:43
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 1 2013, 11:00
Post #38
Tenboro

Admin




QUOTE(G Just G @ Jan 1 2013, 04:23) *
Actually one question on the servers: If the server is overloaded I would see it happen by the Trust falling correct? So long as it stays in the positive range (800+) I assume I'm good to continue running with my current setup? Since I've been reducing caches on the slow server they've never gone into the sub 700 range.


As a general rule, trust should start falling relatively fast if the connection is overloaded, but it's best to prevent it from happening in the first place. As long as it doesn't cap during peak, you should be good. (IMG:[invalid] style_emoticons/default/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 1 2013, 14:51
Post #39
StonyCat



Retired
*******
Group: Catgirl Camarilla
Posts: 2,487
Joined: 31-March 12
Level 500 (Dovahkiin)


QUOTE(Tenboro @ Jan 1 2013, 17:00) *

As a general rule, trust should start falling relatively fast if the connection is overloaded, but it's best to prevent it from happening in the first place. As long as it doesn't cap during peak, you should be good. (IMG:[invalid] style_emoticons/default/smile.gif)

Is it bad to Hath generation if a client could not sustain a +1000 trust (as long as it doesn't drop below 0)? I found that this is quite frequent to my current VPS provider but just a very small part of them would eventually drop below 0.

And how do you guys set the "Maximum Burst Speed" value on the H@H client page? Same as the port speed as claimed by the service provider? For my provider, they claim the port speed is 100Mbps, so I just set the value to 10MB/s here, but seems the actual speed never goes over 2MB/s, I wonder if it would be better for me to decrease that value.

This post has been edited by mnching: Jan 1 2013, 16:14
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 1 2013, 15:09
Post #40
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


I have set some random ridiculous high number to max burst speed and my Trust is always 1000.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


5 Pages V < 1 2 3 4 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 25th July 2025 - 03:18