Questions tagged [concurrency]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
14 votes
5 answers
26k views

NGINX timeout after +200 concurrent connections

This is my nginx.conf (I've updated config to make sure that there is no PHP involved or any other bottlenecks): user nginx; worker_processes 4; worker_rlimit_nofile 10240; pid ...
8 votes
1 answer
25k views

How can I tell the maximum threads my server can run?

Here is the machine spec: CPU(s): 20 Thread(s) per core: 1 Core(s) per socket: 10 Socket(s): 2 Based on what I've read so far, these numbers mean that I can run 20 ...
tera_789's user avatar
  • 183
7 votes
1 answer
16k views

How to allow more than two simultanous sessions on Azure

One of our servers is on Azure and we are remotely connecting to it. Unfortunately Azure allows only two users to be logged in at the same time. When the third user tries to log in, he is given the ...
QWE's user avatar
  • 261
5 votes
1 answer
20k views

Limit concurrent connections to Postfix server

I'm having trouble limiting the number of concurrent connections from the same client to my Postfix server. Limiting the maximal number of concurrent processes, from the same or different clients, is ...
Jay's user avatar
  • 151
4 votes
2 answers
818 views

How to lock concurrent access to a shared webservice from multiple webservers?

Our production environment consists in n Apache web servers accessed by browsers via a frontal load balancer. Very typical. 99% of our HTTP requests are gracefully handled by this parallelized ...
Tom Desp's user avatar
  • 205
4 votes
1 answer
3k views

How to circumvent siege concurrency socket select timed out

Being trying to test load capacity of a web site. I am using an aws ubuntu xenial server t2.micro as test client and have SIEGE 3.0.8 and apache benchmark Version 2.3 while ab -c 100 -n 100000 url ...
black sensei's user avatar
3 votes
2 answers
22k views

How does server handle multiple clients on the same port? Multiple sockets or multiple ports? [closed]

I have a misundertanding about some networking theory and because I couldn't find a definitive answer online (most resourceas are theory and theory etc without concise examples) I'm asking here. ...
john-13-14's user avatar
3 votes
2 answers
7k views

Heavy write to Galera cluster - table locked, cluster practically unusable

I set up Galera Cluster on 3 nodes. It works perfectly for reading data. I have done simple application to make some test on the cluster. Unfortunately I have to say that the Cluster fails totally ...
Joe's user avatar
  • 323
3 votes
2 answers
10k views

Tracking down "Connection reset" errors in Linux

I'm handling large numbers of concurrent downloads (approx. 500 per server) using Java. All the files are being downloaded from Amazon S3, and the downloading server is an EC2 m1.large instance. ...
netflux's user avatar
  • 233
3 votes
3 answers
559 views

Super simple high performance http server

I´m building a url shortener web application and I would like to know the best architecture to do it in order to provide a fast and reliable service. I would like to have two separate servicies in ...
masylum's user avatar
  • 147
3 votes
1 answer
1k views

Apache Benchmark is slow from public network, magnitudes faster locally. What are some things I do to speed this up?

I am testing my Linode Ubuntu 14 64bit server out, it's the most basic server available from them. I am using Apache Benchmark to test the server, as well as a multithreaded script I wrote in Python, ...
scape's user avatar
  • 365
3 votes
1 answer
491 views

apache mpm_worker server failed to respond

I'm trying to update our current Apache 2.4.9 configuration from using prefork to worker mpm. I'm doing some simple load testing using jmeter to compare the performance between the 2. My first test is ...
aka_tony's user avatar
2 votes
5 answers
2k views

Many concurrent SSH commands in a bash script?

My Bash-Foo is not strong. Right now I have something like function update_project { for i in server-{1,2,3,4} ; do echo "Updating $i" ssh $i "git pull" done } The number of servers is ...
linkedlinked's user avatar
2 votes
2 answers
5k views

How to determine POSIX advisory file locks are working in simfs in the VM I'm using?

I'm looking for a command-line utility or some other way to test effectiveness of file locks, specifically POSIX advisory locks (which aren't only for POSIX, btw) in a Linux filesystem. Specifically, ...
Gary S. Weaver's user avatar
2 votes
1 answer
728 views

Google Cloud SQL / App Engine concurrency limits

I've been using Google App Engine to host my APIs and keep banging up against the limitation of concurrent database connections. The docs say that you can only have up to 12 concurrent connections per ...
Dan's user avatar
  • 21
2 votes
2 answers
4k views

Postfix - rate limit outgoing concurrent connections to one machine/ip

I need to limit postfix outgoing connections for specific mailservers, but it seems to me that posfix's limiting is based on domains? What if there is one mailserver for more domains? I tried to find ...
xtc's user avatar
  • 19
2 votes
1 answer
220 views

IIS 7.5 on Windows 7 Ultimate

I am looking to install Windows 7 Ultimate and run IIS 7.5 on it. However, I would like to know exactly what my limitations will be with this setup. While researching this topic various resources ...
Jeremy Friesen's user avatar
2 votes
1 answer
2k views

Gunicorn does not repondes more than 6 requests at a time

To give you some context: I have two server environments running the same app. The first, which I intend to abandon, is a Standard Google App Engine environment that has many limitations. The second ...
Mauricio's user avatar
  • 243
2 votes
1 answer
3k views

Server's maxconn parameter in haproxy

I'm using HAProxy in production to balance queries to a series of server instances that can only process 1 query at a time (by our own decision). Knowing that I set the maxconn parameter in the server ...
Khriz's user avatar
  • 121
2 votes
1 answer
519 views

Plotted ab results of node, cluster and nginx, odd results?

I did a test with ab -n 10000 -c 1000 against node.js with different configurations, each returning the string Hello World!. Results seems odd to me. X axis is the number of requests, y is the ...
gremo's user avatar
  • 349
2 votes
0 answers
50 views

How does a server (e.g. web) manage multiple request/connections? [closed]

I read that apache has a solution to create new thread per new request, but I still have some questions. How is possible that one server can manage thousands (even a milion connection - depends from ...
user155293's user avatar
1 vote
3 answers
3k views

Several Cron at same minute

I'm installing a bunch of Magento shops on a webserver. Every website has a cron job that Magento uses to update its stuff -- it takes 3-4 seconds to complete. The instructions tell to set it to run ...
flip79's user avatar
  • 143
1 vote
3 answers
1k views

Is NFS capable of preserving order of operations?

I have a diskless host 'A', that has a directory NFS mounted on server 'B'. A process on A writes to two files F1 and F2 in that directory, and a process on B monitors these files for changes. Assume ...
JustJeff's user avatar
  • 295
1 vote
3 answers
2k views

Why is method that uses gevent in a mod_wsgi deployed Flask api raising error about switching threads?

I am trying to deploy a Flask api via Apache/mod_wsgi. The api uses Gevent to provide concurrency for a recursive method. However, it is throwing the following error [Mon Feb 08 12:05:37 2016] [error]...
horcle_buzz's user avatar
1 vote
1 answer
615 views

proper concurrent users estimation case studies

I've been asked to size a web architecture for an excessive number of concurrent users ( hundreds of thousands ). I'm having a hard time convincing these people that unless you are in the top 5 of ...
golemwashere's user avatar
1 vote
1 answer
496 views

SQLite WAL concurrent write performance on UNIX systems

I have two setups: one runs on windows 10 (ntfs partition), the other on debian (ext4 partition). The R source code is the same. The main process starts 8 child-processes (P-SOCKS) -- on 8 vcores -- ...
Davor Josipovic's user avatar
1 vote
2 answers
2k views

AWS codedeploy: parallel or concurrent deployments

I'm currently experimenting with AWS codedeploy and noticed that there can be only one deployment running at the same time. I have six applications (in the AWS codedeploy sense) each with one ...
frank's user avatar
  • 121
1 vote
1 answer
873 views

Terminal Command to find maximum allowed TCP/IP connection on a port in Apache server(CentOS)

Is there any terminal commands to check the maximum allowed number of concurrent TCP/IP connections can be done in Apache server with CentOS??
Lingaraj's user avatar
1 vote
0 answers
38 views

How WordPress Server Should Be Setup For Concurrency [duplicate]

Recently I have a website which has a 4GB MySql database and 30,000 posts on WordPress. The average response time is 1,5 seconds without caching. I had 2 requests per second on a 4CPU / 8GB Machine ...
doraemon's user avatar
  • 153
1 vote
0 answers
309 views

Understanding clients-server max-concurrent-connections and TIME_WAIT state

I know there are a lot of questions and also answers around the TIME_WAIT state of a socket connection, but somehow non of them (or maybe from an experts perspective all of them) help me to understand ...
Philipp's user avatar
  • 111
1 vote
1 answer
386 views

Throttling a user across multiple datacenters

I'm trying to implement a throttling feature on nginx, that is shared across multiple servers across multiple datacenters. I would like to know what would be the best practice for building this. For ...
Mark's user avatar
  • 462
1 vote
0 answers
297 views

Fail with ab test with nginx, two workers and 1024 connections?

I'm doing some tests with nginx 1.4.1 and Node.js 0.10.5 on my development machine (P8700 Dual Core 2.53Ghz, 4Gb RAM running Xubuntu x64). Unfortunately I can't do ab with 100000 requests with a ...
gremo's user avatar
  • 349
1 vote
0 answers
1k views

tomcat max number of threads

I have a very confusing scenario.. We are using tomcat6 to host an internal application. In server.xml file maxthreads attributes is set to 150 but if I log on to the manager, in "http-8080" section I ...
rrkwells's user avatar
0 votes
4 answers
103 views

Tips on technology for one program, many concurrent http clients on small host? [closed]

What technology could be used for one application to serve many simultaneous users on a small resource-constrained host (eg: Rasbperry Pi or similar)? That is, it doesn't need a general purpose web ...
Zeph's user avatar
  • 109
0 votes
1 answer
3k views

Ask nginx to handle requests from the same IP in parallel?

I have an application internal to my company that needs to be very fast per client, because the clients are so limited and the whole thing is internal. So, the client is expected to send so many ...
OmarOthman's user avatar
0 votes
3 answers
89 views

What framework is good for delivering data that is commonly changed in a few second and is assessed by lots of people (similar to stock quote)? [closed]

I am only familiar with php and javascript and I guess php is not good at serving large amount of concurrent request. I would be grateful if someone can introduce me to more appropriate framework for ...
StCee's user avatar
  • 241
0 votes
2 answers
470 views

Simulating 1000 concurrent downloads

I'd like to simulate 1000 concurrent downloads of a single file from Cloudfront. I figured I'd setup ~10-20 xlarge EC2 instances for this. Is there an obvious way I'm missing to trigger this at the ...
Publiccert's user avatar
  • 1,112
0 votes
2 answers
415 views

Where is the bottleneck?

There is a limit on connections somewhere along the line here... On a windows server 2008 machine, each request to a url running on localhost takes ~3 seconds to complete. This is fine and normal for ...
maxp's user avatar
  • 113
0 votes
1 answer
5k views

Is it advised to close MySQL connection after every query

I have some sort of web crawler with PHP, which crawls the web and stores information about the pages in the database, now the thing is, loading pages takes a lot of time, and on top of that my script ...
AL-Kateb's user avatar
  • 341
0 votes
1 answer
3k views

How do concurrent filesystems work? [closed]

From learning about how filesystems use transactions and logs to make sure that the disk is in an atomic state even after there's been a system crash, I've become curious about how filesystems deal ...
Kaitlyn Mcmordie's user avatar
0 votes
1 answer
950 views

postfix concurrency limit with round robin dns

Take the following internal round robin dns setup mymta.com. IN A 172.31.1.1 mymta.com. IN A 172.31.1.2 mymta.com. IN A 172.31.1.3 mymta.com. IN A 172.31.1.4 mymta.com. IN A 172.31.1.5 mymta.com. IN ...
goose's user avatar
  • 151
0 votes
1 answer
645 views

Limit on concurrent connections: Determined by webserver or database?

Does the webserver or is it the database that limits the number of concurrent connections?
hsym's user avatar
  • 1,013
0 votes
3 answers
49 views

How two or more guest OS's hosted in a virtual environment handles editing of single resource?

I know this sounds very general question. Consider 2 OS's running using virtualization say operating system level virtualization. How concurrency is handled if both hosted OS using same resource and ...
pramodc84's user avatar
  • 103
0 votes
0 answers
76 views

Varying, exclusive limits on concurrency in GitLab runner

I have a Linux server used as a GitLab runner. I'd like the server to be usable for two different purposes simultaneously: For build jobs, unit tests, etc. (things that aren't timing sensitive) many ...
rsethc's user avatar
  • 101
0 votes
1 answer
35 views

Safely update configuration file stored on NFSv3 mount

I have a configuration file config_file that is stored on an NFSv3 network mount, and I would like to update that file safely. Here are the conditions and restrictions that I'm working under: There ...
Ender Wiggin's user avatar
0 votes
1 answer
96 views

How to allow concurrent execution of job arrays with job share (-js)

I'm trying to have SGE run job array tasks concurrently based on the job shares parameter of qsub but it seems not to be working as expected. Is there a way to enable concurrent task execution based ...
a1an's user avatar
  • 457
0 votes
1 answer
752 views

Does the maximum amount of open descriptors in a server include it's children?

I know that Linux limits the maximum amount of open descriptors, usually to 1024. Now say I need to create a server which will handle more than 1024 users, 2000 for example, without tampering with the ...
Cuaox's user avatar
  • 1
0 votes
1 answer
193 views

Apache delays serving an empty html file while processing a concurrent request

I have a website, which queries a Varnish server, which queries an Apache server, which queries a db server. At 07:00:00, a request is send to the Apache server, which triggers a db request that ...
Elvex's user avatar
  • 227
0 votes
1 answer
509 views

Server is not responding when single connection is blocked

I'm not sure how to properly specify this problem, I'm not really a server expert. I will be glad to provide additional data on demand. I have a PHP web-application running on Ubuntu Server with ...
Slava Fomin II's user avatar
0 votes
1 answer
150 views

Excel 2013 Power Pivot RemoteApp - limited by 4 concurrent users? [closed]

We're trying to use Excel 2013 (64bit) + Power Pivot via RemoteApp. The problem we're having is basically the same as described this TechNet thread. 4 concurrent users have no problem using Power ...
Blaž Dakskobler's user avatar