Apache HTTPD reload [closed] - reload

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Does anyone know if while Apache HTTPD is doing a reload (which, let's say, takes five seconds) can it still serve requests during that time?

First of all, you say reload, but assuming you mean 'reload' OR 'restart':
/my/path/to/httpd restart
Causes the current httpd process to exit, which means for a time the server appears to be down, as in not serving any requests.
Reload on the other side:
/my/path/to/httpd reload
Does not cause the current server to exit, which means connections
are never refused and thus the server never looks down (but is rather
slow for a little while)
Will cause all long running httpd daemon requests to exit

As far as I know, no. However there is a graceful restart which stops child nodes halting mid-request which I think takes care of this.
http://httpd.apache.org/docs/2.2/stopping.html

Related

Rsync not terminating when giving timeout [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
we are trying to setup timeout limit for rsync data transfer, below is the command executing:
rsync --bwlimit=10 --timeout=10 -e ssh -avzr --delete /u01/Oracle/SyncScriptFolder/source xxxxx#xxxxxx:/u01/Oracle/SyncScriptFolder/source --stats -i
based on above command the rsync should stop the execution/transfer if it do not completes in 10 seconds, but it still continues to execute and donot terminates.
Terminate when no data transfer happens between source to destination. Check if there are any files are still updating in the source system.
Check the below bold text from the documentation,
--timeout=TIMEOUT
This option allows you to set a maximum I/O timeout in seconds. If no data is transferred for the specified time then rsync will exit. The
default is 0, which means no timeout.

telnetd accepts only one connection [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have got telnet server running on a bsd target. I want to connect to this target from multiple other machines. Surprisingly it does not allow more connections.
I checked why and found it is not listening(listen) in a loop. So, I kinda fixed it. But I was wondering is there any specific reason why telnetd code is kept with single connection at a time? (I am allowed to connect to telnetd server from only one client for a particular port.)
(I know telnet is not a safe option. But I am having just fun on small embedded platform and getting things working is more imp than security at this moment.)
Thanks
Telnet is supposed to be launched by inetd. You need to configure inetd to do the listening for you.
The wikipedia article that I linked to explains how to do that.

Programatically change ip address of DSL connection [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm working on a project for my company. I'm using a DSL connection. My IP address changes every time I restart my router. Is there a faster way to request a new IP from my ISP programatically? I've seen that RDSL services can change the IP in a few seconds, but I'm looking for a more "legal" way to do this other than RDSL.
Thank you!
Does your router have firmware you can browse to? There may be a link to reboot your router (or even release/renew your IP lease) there. You can set up a cron job to call cURL to access that URL every so often. You might also have to authenticate in order to do that, but cURL should handle that.
If you're on a system that does not have cURL or cron, you may have equivalents, but they're pretty simple programs and you should be able to find them for any popular OS.

Is there a way I can replicate http traffic to a redundant server? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I will be moving a high load prod system over to new hardware over the next few weeks. However in the mean time I would like to validate that the new hardware will handle the expected loads. I would really like to stick some kind of 'proxy' infront of the current web server and copy all that http traffic to the new environment, i.e. run them both in parallel.
Ideally this proxy would also validate that the responses are the same.
I can then monitor the new hardware stats (cpu, mem, etc) and see if it looks ok.
What is this kind of proxy called? Any one have any suggestions? This is for a Windows .Net (asp.net) and SQL server environment.
Thanks all
Varnish comes to mind - https://www.varnish-cache.org/
Edit
I'd actually use nginx... (two years experience after answering this question).. varnish would be silly to use. nginx would definitely be the better option.
Have a look a JMeter. It's Java based but allows you to record user journeys and play them back in bulk for stress testing.

Load Balancing a UDP server [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
Asked on Server Fault:
Load Balancing a UDP server
I have a udp server, it is a central part in my business process. in order to handle the loads I'm expecting in the production environment ill probably need 2 or 3 instances of the server. The server is almost entirely stateless, it mostly collect's data, and the layer above it knows how to handle the minimal amount of stale data that can arise from the the multiple server instances.
My question is how can I implement load balancing between the servers? I would prefer to distribute the requests as evenly as possible between the servers. I would also would like to have some fidelity, i mean if client X was routed to server y, then I want all of X's subsequent requests to go to server Y, as long as it is sensible and not overloads Y.
By the way it is a .NET system...
what would you recommend?
How many clients will be using these servers? If the number is reasonably high DNS round robin loadbalancing would probably be fine.

Resources