You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by 刘孟 <li...@telemap.com.cn> on 2022/04/12 09:20:04 UTC

[apache]maxconnectionsperchild problem

����ʦ������



��������ð���������Ľ������ʡ�



�����ʹ�� apache ��ת������ʱ������ preforkģʽ�µ�

MaxConnectionsPerChild  ��������˾�ڲ����������塣



��˾�ڲ��������߷�ʱ��ÿ̨���������ӽ���������1000���ң�

Ŀǰ MaxConnectionsPerChild ���õ���0�� Ϊ���ܹ���ʱ��������Ŀ���

NDS�����Ǽƻ�ͨ������ MaxConnectionsPerChild��ֵʹ��ÿ���ӽ����ڰ���

���ҿ�������һ�Ρ�



����һ�£�������������Ժ󣬻᲻����� 1000�����̸պ�ͬһʱ�䵽������

�ķ��ʴ�����ͬʱ��ֹ����ɷ����жϵ�������֡�



Ŀǰ������  maxsparechlid =20  minsparechlid = 10

���������MaxConnectionsPerChild���Ƿ�Ӧ��ͬ������������ֵ������

��Ŀ���Ƿ���߷�ʱ��Ҫ���������ӽ���ͬʱ����������



������Ϣ���㻹����š�

�·����ҵĵ绰�����Ե绰��ͨ��

�����������Լ�����

�ձ��Z�Ό���ϤǤ��ޤ���



��æ֮�д����ˡ�

ף �������


-------------------------------------------------------------------------------------------
���� Liu Meng
Project Development Dept.
Tel : 010 82306399-7526 /Phone : 18500386112

������Ѹ�N�_��Ϣ���g���޹�˾ �������к���������·���N·�����|�ϡ��ľS���¥ӥ�A��8F
Address : 8Floor,A Block,NavInfo Building, Southeast Crossing of BeiQing Rd. and YongFeng Rd., HaiDian District, Beijing��100094��
-------------------------------------------------------------------------------------------


答复: [apache]maxconnectionsperchild problem

Posted by 刘孟 <li...@telemap.com.cn>.
Hi ,  Frank Gingras

Thank you for your response.
The mpm I using is prefork mode.
I will write it in my question and try to
ask it to users@httpd.apache.org<ma...@httpd.apache.org>
thank you very much.

Best regards
Meng

-------------------------------------------------------------------------------------------
刘孟 Liu Meng
Project Development Dept.
Tel : 010 82306399-7526 /Phone : 18500386112

北京図迅豊達信息技術有限公司  北京市海淀区北清路永豊路交差点東南 四維図新ビルA-8F
Address : 8Floor,A Block,NavInfo Building, Southeast Crossing of BeiQing Rd. and YongFeng Rd., HaiDian District, Beijing(100094)
-------------------------------------------------------------------------------------------

发件人: Frank Gingras <th...@apache.org>
发送时间: 2022年4月15日 0:05
收件人: dev@httpd.apache.org
主题: Re: [apache]maxconnectionsperchild problem

You should direct your questions to users@httpd.apache.org<ma...@httpd.apache.org> instead.

In the meantime, what mpm are you using?

On Thu, 14 Apr 2022 at 07:42, 刘孟 <li...@telemap.com.cn>> wrote:
I am sorry that  is there anybody can answer my question?

Hello, Mr Mentor

I tried to translat it to English, please forgive my poor English

Recently, when using the forwarding function of Apache, the
The [maxconnectionsperchild] parameter in the MPM is ambiguous within the company.

During the peak hours of the company's internal servers, the number of sub processes(hpptd) of
each server is about 1000,[Maxconnectionsperchild] is currently set to 0. In order to be able to
resolve the  access target regularlyIn DNS, we plan to adjust the value of [maxconnectionsperchild]
to make each child process in half a day that It can be restarted once.

My question is After setting this parameter, if it is possible that 1000 processes are arrive at the same time
resulting in service interruption?

Current server setting of [maxsparechlid = 20] and  [minspareechlid = 10]
If [maxconnectionsperchild] is set, should the settings of these two values be adjusted synchronously
(the purpose is not to restart all child processes at the same time during peak service)

If there is insufficient information, please let me konw.
There is my phone below, you can communicate by phone.
But I’m sorry that I just can speak Chinese or Japanese

Best regares
Have a nice work

-------------------------------------------------------------------------------------------
刘孟 Liu Meng
Project Development Dept.
Tel : 010 82306399-7526 /Phone : 18500386112

北京図迅豊達信息技術有限公司  北京市海淀区北清路永豊路交差点東南 四維図新ビルA-8F
Address : 8Floor,A Block,NavInfo Building, Southeast Crossing of BeiQing Rd. and YongFeng Rd., HaiDian District, Beijing(100094)
-------------------------------------------------------------------------------------------

发件人: 刘孟 <li...@telemap.com.cn>>
发送时间: 2022年4月12日 17:20
收件人: dev@httpd.apache.org<ma...@httpd.apache.org>
主题: [apache]maxconnectionsperchild problem


工程师,您好



请允许我冒昧的用中文进行提问。



最近在使用 apache 的转发功能时,对于 prefork模式下的

MaxConnectionsPerChild  参数,公司内部产生了歧义。



公司内部服务器高峰时,每台服务器的子进程数量在1000左右,

目前 MaxConnectionsPerChild 设置的是0。 为了能够定时解析访问目标的

NDS,我们计划通过调整 MaxConnectionsPerChild的值使得每个子进程在半天

左右可以重启一次。



请问一下,这个参数设置以后,会不会出现 1000个进程刚好同一时间到达设置

的访问次数而同时终止,造成服务中断的现象出现。



目前服务器  maxsparechlid =20  minsparechlid = 10

如果设置了MaxConnectionsPerChild,是否应该同步调整这两个值的设置

(目的是服务高峰时不要出现所有子进程同时重启的现象)



如有信息不足还请回信。

下方有我的电话,可以电话沟通。

可以用中文以及日语

日本語の対応はできます。



百忙之中打扰了。

祝 工作愉快


-------------------------------------------------------------------------------------------
刘孟 Liu Meng
Project Development Dept.
Tel : 010 82306399-7526 /Phone : 18500386112

北京図迅豊達信息技術有限公司  北京市海淀区北清路永豊路交差点東南 四維図新ビルA-8F
Address : 8Floor,A Block,NavInfo Building, Southeast Crossing of BeiQing Rd. and YongFeng Rd., HaiDian District, Beijing(100094)
-------------------------------------------------------------------------------------------


Re: [apache]maxconnectionsperchild problem

Posted by Frank Gingras <th...@apache.org>.
You should direct your questions to users@httpd.apache.org instead.

In the meantime, what mpm are you using?

On Thu, 14 Apr 2022 at 07:42, 刘孟 <li...@telemap.com.cn> wrote:

> I am sorry that  is there anybody can answer my question?
>
>
>
> Hello, Mr Mentor
>
>
>
> I tried to translat it to English, please forgive my poor English
>
>
>
> Recently, when using the forwarding function of Apache, the
>
> The [maxconnectionsperchild] parameter in the MPM is ambiguous within the
> company.
>
>
>
> During the peak hours of the company's internal servers, the number of sub
> processes(hpptd) of
>
> each server is about 1000,[Maxconnectionsperchild] is currently set to 0.
> In order to be able to
>
> resolve the  access target regularlyIn DNS, we plan to adjust the value of
> [maxconnectionsperchild]
>
> to make each child process in half a day that It can be restarted once.
>
>
>
> My question is After setting this parameter, if it is possible that 1000
> processes are arrive at the same time
>
> resulting in service interruption?
>
>
>
> Current server setting of [maxsparechlid = 20] and  [minspareechlid = 10]
>
> If [maxconnectionsperchild] is set, should the settings of these two
> values be adjusted synchronously
>
> (the purpose is not to restart all child processes at the same time during
> peak service)
>
>
>
> If there is insufficient information, please let me konw.
>
> There is my phone below, you can communicate by phone.
>
> But I’m sorry that I just can speak Chinese or Japanese
>
>
>
> Best regares
>
> Have a nice work
>
>
>
>
> -------------------------------------------------------------------------------------------
>
> 刘孟 Liu Meng
>
> Project Development Dept.
>
> Tel : 010 82306399-7526 /Phone : 18500386112
>
>
>
> 北京図迅豊達信息技術有限公司 北京市海淀区北清路永豊路交差点東南 四維図新ビルA-8F
>
> Address : 8Floor,A Block,NavInfo Building, Southeast Crossing of BeiQing
> Rd. and YongFeng Rd., HaiDian District, Beijing(100094)
>
>
> -------------------------------------------------------------------------------------------
>
>
>
> *发件人:* 刘孟 <li...@telemap.com.cn>
> *发送时间:* 2022年4月12日 17:20
> *收件人:* dev@httpd.apache.org
> *主题:* [apache]maxconnectionsperchild problem
>
>
>
> 工程师,您好
>
>
>
> 请允许我冒昧的用中文进行提问。
>
>
>
> 最近在使用 apache 的转发功能时,对于 prefork模式下的
>
> MaxConnectionsPerChild  参数,公司内部产生了歧义。
>
>
>
> 公司内部服务器高峰时,每台服务器的子进程数量在1000左右,
>
> 目前 MaxConnectionsPerChild 设置的是0。 为了能够定时解析访问目标的
>
> NDS,我们计划通过调整 MaxConnectionsPerChild的值使得每个子进程在半天
>
> 左右可以重启一次。
>
>
>
> 请问一下,这个参数设置以后,会不会出现 1000个进程刚好同一时间到达设置
>
> 的访问次数而同时终止,造成服务中断的现象出现。
>
>
>
> 目前服务器  maxsparechlid =20  minsparechlid = 10
>
> 如果设置了MaxConnectionsPerChild,是否应该同步调整这两个值的设置
>
> (目的是服务高峰时不要出现所有子进程同时重启的现象)
>
>
>
> 如有信息不足还请回信。
>
> 下方有我的电话,可以电话沟通。
>
> 可以用中文以及日语
>
> 日本語の対応はできます。
>
>
>
> 百忙之中打扰了。
>
> 祝 工作愉快
>
>
>
>
>
>
> -------------------------------------------------------------------------------------------
>
> 刘孟 Liu Meng
>
> Project Development Dept.
>
> Tel : 010 82306399-7526 /Phone : 18500386112
>
>
>
> 北京図迅豊達信息技術有限公司 北京市海淀区北清路永豊路交差点東南 四維図新ビルA-8F
>
> Address : 8Floor,A Block,NavInfo Building, Southeast Crossing of BeiQing
> Rd. and YongFeng Rd., HaiDian District, Beijing(100094)
>
>
> -------------------------------------------------------------------------------------------
>
>
>

答复: [apache]maxconnectionsperchild problem

Posted by 刘孟 <li...@telemap.com.cn>.
I am sorry that  is there anybody can answer my question?

Hello, Mr Mentor

I tried to translat it to English, please forgive my poor English

Recently, when using the forwarding function of Apache, the
The [maxconnectionsperchild] parameter in the MPM is ambiguous within the company.

During the peak hours of the company's internal servers, the number of sub processes(hpptd) of
each server is about 1000,[Maxconnectionsperchild] is currently set to 0. In order to be able to
resolve the  access target regularlyIn DNS, we plan to adjust the value of [maxconnectionsperchild]
to make each child process in half a day that It can be restarted once.

My question is After setting this parameter, if it is possible that 1000 processes are arrive at the same time
resulting in service interruption?

Current server setting of [maxsparechlid = 20] and  [minspareechlid = 10]
If [maxconnectionsperchild] is set, should the settings of these two values be adjusted synchronously
(the purpose is not to restart all child processes at the same time during peak service)

If there is insufficient information, please let me konw.
There is my phone below, you can communicate by phone.
But I��m sorry that I just can speak Chinese or Japanese

Best regares
Have a nice work

-------------------------------------------------------------------------------------------
���� Liu Meng
Project Development Dept.
Tel : 010 82306399-7526 /Phone : 18500386112

������Ѹ�N�_��Ϣ���g���޹�˾ �������к���������·���N·�����|�ϡ��ľS���¥ӥ�A��8F
Address : 8Floor,A Block,NavInfo Building, Southeast Crossing of BeiQing Rd. and YongFeng Rd., HaiDian District, Beijing��100094��
-------------------------------------------------------------------------------------------

������: ���� <li...@telemap.com.cn>>
����ʱ��: 2022��4��12�� 17:20
�ռ���: dev@httpd.apache.org<ma...@httpd.apache.org>
����: [apache]maxconnectionsperchild problem


����ʦ������



��������ð���������Ľ������ʡ�



�����ʹ�� apache ��ת������ʱ������ preforkģʽ�µ�

MaxConnectionsPerChild  ��������˾�ڲ����������塣



��˾�ڲ��������߷�ʱ��ÿ̨���������ӽ���������1000���ң�

Ŀǰ MaxConnectionsPerChild ���õ���0�� Ϊ���ܹ���ʱ��������Ŀ���

NDS�����Ǽƻ�ͨ������ MaxConnectionsPerChild��ֵʹ��ÿ���ӽ����ڰ���

���ҿ�������һ�Ρ�



����һ�£�������������Ժ󣬻᲻����� 1000�����̸պ�ͬһʱ�䵽������

�ķ��ʴ�����ͬʱ��ֹ����ɷ����жϵ�������֡�



Ŀǰ������  maxsparechlid =20  minsparechlid = 10

���������MaxConnectionsPerChild���Ƿ�Ӧ��ͬ������������ֵ������

��Ŀ���Ƿ���߷�ʱ��Ҫ���������ӽ���ͬʱ����������



������Ϣ���㻹����š�

�·����ҵĵ绰�����Ե绰��ͨ��

�����������Լ�����

�ձ��Z�Ό���ϤǤ��ޤ���



��æ֮�д����ˡ�

ף �������


-------------------------------------------------------------------------------------------
���� Liu Meng
Project Development Dept.
Tel : 010 82306399-7526 /Phone : 18500386112

������Ѹ�N�_��Ϣ���g���޹�˾ �������к���������·���N·�����|�ϡ��ľS���¥ӥ�A��8F
Address : 8Floor,A Block,NavInfo Building, Southeast Crossing of BeiQing Rd. and YongFeng Rd., HaiDian District, Beijing��100094��
-------------------------------------------------------------------------------------------


答复: [apache]maxconnectionsperchild problem

Posted by 刘孟 <li...@telemap.com.cn>.
Hello, Mr Mentor

I tried to translat it to English, please forgive my poor English

Recently, when using the forwarding function of Apache, the
The [maxconnectionsperchild] parameter in the MPM is ambiguous within the company.

During the peak hours of the company's internal servers, the number of sub processes(hpptd) of
each server is about 1000,[Maxconnectionsperchild] is currently set to 0. In order to be able to
resolve the  access target regularlyIn DNS, we plan to adjust the value of [maxconnectionsperchild]
to make each child process in half a day that It can be restarted once.

My question is After setting this parameter, if it is possible that 1000 processes are arrive at the same time
resulting in service interruption?

Current server setting of [maxsparechlid = 20] and  [minspareechlid = 10]
If [maxconnectionsperchild] is set, should the settings of these two values be adjusted synchronously
(the purpose is not to restart all child processes at the same time during peak service)

If there is insufficient information, please let me konw.
There is my phone below, you can communicate by phone.
But I��m sorry that I just can speak Chinese or Japanese

Best regares
Have a nice work

-------------------------------------------------------------------------------------------
���� Liu Meng
Project Development Dept.
Tel : 010 82306399-7526 /Phone : 18500386112

������Ѹ�N�_��Ϣ���g���޹�˾ �������к���������·���N·�����|�ϡ��ľS���¥ӥ�A��8F
Address : 8Floor,A Block,NavInfo Building, Southeast Crossing of BeiQing Rd. and YongFeng Rd., HaiDian District, Beijing��100094��
-------------------------------------------------------------------------------------------

������: ���� <li...@telemap.com.cn>
����ʱ��: 2022��4��12�� 17:20
�ռ���: dev@httpd.apache.org
����: [apache]maxconnectionsperchild problem


����ʦ������



��������ð���������Ľ������ʡ�



�����ʹ�� apache ��ת������ʱ������ preforkģʽ�µ�

MaxConnectionsPerChild  ��������˾�ڲ����������塣



��˾�ڲ��������߷�ʱ��ÿ̨���������ӽ���������1000���ң�

Ŀǰ MaxConnectionsPerChild ���õ���0�� Ϊ���ܹ���ʱ��������Ŀ���

NDS�����Ǽƻ�ͨ������ MaxConnectionsPerChild��ֵʹ��ÿ���ӽ����ڰ���

���ҿ�������һ�Ρ�



����һ�£�������������Ժ󣬻᲻����� 1000�����̸պ�ͬһʱ�䵽������

�ķ��ʴ�����ͬʱ��ֹ����ɷ����жϵ�������֡�



Ŀǰ������  maxsparechlid =20  minsparechlid = 10

���������MaxConnectionsPerChild���Ƿ�Ӧ��ͬ������������ֵ������

��Ŀ���Ƿ���߷�ʱ��Ҫ���������ӽ���ͬʱ����������



������Ϣ���㻹����š�

�·����ҵĵ绰�����Ե绰��ͨ��

�����������Լ�����

�ձ��Z�Ό���ϤǤ��ޤ���



��æ֮�д����ˡ�

ף �������


-------------------------------------------------------------------------------------------
���� Liu Meng
Project Development Dept.
Tel : 010 82306399-7526 /Phone : 18500386112

������Ѹ�N�_��Ϣ���g���޹�˾ �������к���������·���N·�����|�ϡ��ľS���¥ӥ�A��8F
Address : 8Floor,A Block,NavInfo Building, Southeast Crossing of BeiQing Rd. and YongFeng Rd., HaiDian District, Beijing��100094��
-------------------------------------------------------------------------------------------