asynch_mode_nginx icon indicating copy to clipboard operation
asynch_mode_nginx copied to clipboard

bugfix: nginx crashes when enable thread pool.

Open zhuizhuhaomeng opened this issue 1 year ago • 4 comments

Signed-off-by: lijunlong [email protected]

zhuizhuhaomeng avatar May 24 '23 12:05 zhuizhuhaomeng

Thank you for your PR. Would you please provide more detail information about how to reproduce this issue? And we'll test internally.

WalterRan avatar May 25 '23 00:05 WalterRan

I did not provide the signed-off in the old PR. Please goto https://github.com/intel/asynch_mode_nginx/pull/52 for more detail.

zhuizhuhaomeng avatar May 25 '23 01:05 zhuizhuhaomeng

Thanks for your contribution, the patch will be tested internally and included in the next release.

WalterRan avatar May 29 '23 07:05 WalterRan

I have also met this issue. And I fixed this problem just exactly as the author does

The nginx config file is nginx-ori.conf, the content:

thread_pool dlb threads=16 max_queue=65535;
http {
    aio threads=dlb;
    xxx;
}

Start the nginx: nginx -p pwd -c nginx-ori.conf Start the benchmark:

k6 run -u 32 script.js

And the content of the script.js:

import http from 'k6/http';
import { check, sleep } from 'k6';

export let options = {
	insecureSkipTLSVerify: true,
	noConnectionReuse: true,
	noVUConnectionReuse: true,

	duration: '20s',
};

export default function () {
	const res = http.get('https://localhost:9001/', {headers: {"Accept-Encoding": "gzip"}});
	check(res, { 'status was 200': (r) => r.status == 200 });
}

Debug nginx: image

mapicccy avatar Aug 25 '23 11:08 mapicccy