summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2019-08-14Renaming supplemental request structures in router.Max Romanov1-2/+2
- nxt_req_app_link_t -> nxt_request_app_link_t - nxt_req_conn_link_t -> nxt_request_rpc_data_t Corresponding abbreviated field names also changed: - ra -> req_app_link - rc -> req_rpc_data
2019-05-30Handling routing errors.Igor Sysoev1-0/+3
2019-03-06Removed unnecessary abstraction layer.Alexander Borisov1-1/+1
2019-02-27Initial routing implementation.Igor Sysoev1-2/+8
2018-09-20Controller: certificates storage interface.Valentin Bartenev1-0/+4
2018-09-20Added SSL/TLS support on connection level.Igor Sysoev1-0/+4
2018-08-10Introducing app joint to accurate app release.Max Romanov1-2/+10
For accurate app descriptor release, it is required to count the number of use counts. Use count increased when: - app linked to configuration app queue; - socket conf stores pointer to app; - request for start app process posted to router service thread; Application port has pointer to app, but it does not increase use count to avoid use count loop. Timer needs a pointer to nxt_timer_t which is stored in engine timers tree. nxt_timer_t now resides in nxt_app_joint_t and does not lock the application. Start process port RPC handlers is also linked to nxt_app_joint_t. App joint (nxt_app_joint_t) is a 'weak pointer': - single threaded; - use countable; - store pointer to nxt_app_t (which can be NULL); nxt_app_t has pointer to nxt_app_joint_t and update its pointer to app.
2018-08-06Unit application library.Max Romanov1-6/+0
Library now used in all language modules. Old 'nxt_app_*' code removed. See src/test/nxt_unit_app_test.c for usage sample.
2018-05-30Fixed keep-alive hanging after reconfiguration.Igor Sysoev1-0/+3
2018-04-11Access log reopening.Valentin Bartenev1-0/+2
2018-04-11Initial access log support.Valentin Bartenev1-9/+25
2018-03-28Using more expressive name for field.Igor Sysoev1-1/+1
2018-01-29Introducing extended app process management.Max Romanov1-3/+14
- Pre-fork 'processes.spare' application processes; - fork more processes to keep 'processes.spare' idle processes; - fork on-demand up to 'processes.max' count; - scale down idle application processes above 'processes.spare' after 'processes.idle_timeout'; - number of concurrently started application processes also limited by 'processes.spare' (or 1, if spare is 0).
2017-12-28Removed duplicate declaration.Igor Sysoev1-0/+2
2017-12-28Removed duplicate declaration.Igor Sysoev1-3/+0
2017-12-28HTTP keep-alive connections support.Igor Sysoev1-0/+7
2017-12-27Implementing worker stop after limits.requests.Max Romanov1-0/+1
2017-12-27Rescheduling of pending request after configured timeout.Max Romanov1-1/+3
New optional configuration parameter introduced: limits.reschedule_timeout. Default value 1 second. In the case when request is written to the port socket 'in advance', it is called 'pending'. On every completed request, the head of pending request is checked against reschedule timeout. If this request waiting for execution longer than timeout, it is cancelled, new port selected for this request.
2017-10-18Router: fixed segfault after configuration change.Igor Sysoev1-9/+8
2017-10-04Introducing use counters for port and app. Thread safe port write.Max Romanov1-1/+5
Use counter helps to simplify logic around port and application free. Port 'post' function introduced to simplify post execution of particular function to original port engine's thread. Write message queue is protected by mutex which makes port write operation thread safe.
2017-09-15Introducing application timeout.Max Romanov1-0/+2
2017-09-14Router: fixed segmentation fault.Igor Sysoev1-0/+6
The router process exited abnormally on reconfiguration if number of worker threads had been decreased on the previous reconfiguration. Besides the list of router engines should be updated only after a new configuration joints have been prepared for all engines.
2017-08-29The master process has been renamed to the main process.Igor Sysoev1-1/+1
2017-08-17The new module configuration interface.Igor Sysoev1-1/+6
Configuration and building example: ./configure ./configure python ./configure php ./configure go make all or ./configure make nginext ./configure python make python ./configure php make php ./configure go make go Modules configuration options and building examples: ./configure python --module=python2 --config=python2.7-config make python2 ./configure php --module=php7 --config=php7.0-config --lib-path=/usr/local/php7.0 make php7 ./configure go --go=go1.6 --go-path=${HOME}/go1.6 make go1.6
2017-08-11Request body read state implemented.Max Romanov1-0/+4
With specific timeout and buffer size settings.
2017-08-02Using port rpc in router->master start worker request.Max Romanov1-2/+1
2017-07-18Port allocation and destroy changed. Worker process stop introduced.Max Romanov1-3/+5
2017-07-16Fixed building by Clang.Igor Sysoev1-3/+0
2017-07-14Router: using joint job queues instead of arrays to passIgor Sysoev1-3/+1
listening socket handlers to worker engines.
2017-07-14Router: using joint jobs to pass listening socket handlers toIgor Sysoev1-3/+10
worker engines.
2017-07-12New process port exchange changed. READY message type introduced.Max Romanov1-2/+11
Application process start request DATA message from router to master. Master notifies router via NEW_PORT message after worker process become ready.
2017-07-11Sending a result of configuration applying back to the controller.Igor Sysoev1-4/+4
2017-07-07Router: processing application configuration.Igor Sysoev1-0/+24
2017-07-06Router: read configuration from port.Max Romanov1-0/+2
Controller: stub to send configuration from POST body "as is" to router.
2017-07-05Router: processing JSON configuration.Igor Sysoev1-7/+20
2017-06-20Using new memory pool implementation.Igor Sysoev1-2/+2
2017-05-31Skeleton of router configuration and request processing.Igor Sysoev1-0/+78