Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
1
  • Loading branch information
javalive committed Sep 9, 2020
1 parent d1850e8 commit b7d7cc8
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
31 changes: 31 additions & 0 deletions guide/endpoint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,37 @@ Body와 QueryString을 혼합해 사용 가능하다. ::
- ``<Module>`` 약속된 연동모듈을 ``Name`` 속성으로 로딩한다. 모듈의 파라미터는 값으로 전달한다.


.. _endpoint-control-error:

커스텀 에러
====================================

네트워크 장애 등의 이유로 엔드포인트가 실패하면 디버깅 정보가 제공된다.
디버깅 정보가 아닌 좀 더 우아한 에러처리가 필요할 경우 커스텀 에러를 설정한다. ::

# vhosts.xml - <Vhosts><Vhost><M2><Endpoints>

<Endpoint>
<Model> ... </Model>
<Control> ... </Control>
<View> ... </View>
<Error ResCode="200" ContentType="image/gif">http://foo.com/default/error.gif</Error>
</Endpoint>

위와 같이 설정하면 엔드포인트가 정상적으로 콘텐츠를 생성하지 못할 때 ``http://foo.com/default/error.gif`` 콘텐츠가 ``200 OK`` 응답코드로 전송된다.

- ``ResCode (기본: 0)`` 응답코드를 설정한다.
``0`` 으로 설정한 경우 URL의 응답코드로 설정된다.
- ``ContentType`` 의 우선순위는 아래와 같다.

1. ``ContentType`` 속성 값
2. `확장자 MimeType <https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types>`_
3. ``text/plain``




.. _endpoint-default:

Default 엔드포인트
Expand Down
13 changes: 13 additions & 0 deletions guide/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@ M2는 리눅스 서비스로 동작한다.
service m2 status


.. _getting-started-command-saferestart:

무중단 재시작
-----------------------------------------------

서비스 중단없이 CPU 코어 단위로 서비스 데몬을 순차적으로 재기동한다. ::

service m2 saferestart

30초마다 2개의 코어를 재시작한다.
8코어로 구동되고 있다면 총 2분에 걸쳐 재가동이 진행된다.


.. _getting-started-sysconf:

시스템 구성
Expand Down
7 changes: 7 additions & 0 deletions guide/releasenote.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Appendix A: 릴리스 노트
v20.x
====================================

20.08.0 (2020.8.26)
----------------------------

- :ref:`endpoint-control-error` 기능 추가
- :ref:`getting-started-command-saferestart` 명령어 추가


20.07.0 (2020.7.29)
----------------------------

Expand Down

0 comments on commit b7d7cc8

Please sign in to comment.