diff --git a/CHANGELOG.md b/CHANGELOG.md index ae2ecfe..c1143bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,17 @@ # CHANGELOG +## v2.5.3 (27.10.2021) + +## ๐Ÿฉน Fixes: + +- ๐Ÿ› Fix: panic in the TLS layer. The `http` plugin used `http` server instead of `https` in the rootCA routine. + ## v2.5.2 (23.10.2021) ## ๐Ÿฉน Fixes: - ๐Ÿ› Fix: ASLR builds causes [problems](https://github.com/spiral/roadrunner-binary/issues/120) in the docker. - ## v2.5.1 (22.10.2021) ## ๐Ÿฉน Fixes: @@ -34,90 +39,94 @@ broadcast: ```yaml broadcast: - default: - driver: memory - config: {} <--------------- NEW + default: + driver: memory + config: { } <--------------- NEW ``` ```yaml kv: - memory-rr: - driver: memory - config: <--------------- NEW - interval: 1 + memory-rr: + driver: memory + config: <--------------- NEW + interval: 1 kv: - memcached-rr: - driver: memcached - config: <--------------- NEW - addr: - - "127.0.0.1:11211" + memcached-rr: + driver: memcached + config: <--------------- NEW + addr: + - "127.0.0.1:11211" broadcast: - default: - driver: redis - config: <------------------ NEW - addrs: - - "127.0.0.1:6379" + default: + driver: redis + config: <------------------ NEW + addrs: + - "127.0.0.1:6379" ``` ## ๐Ÿ‘€ New: - โœ๏ธ **[BETA]** GRPC plugin update to v2. -- โœ๏ธ [Roadrunner-plugins](https://github.com/spiral/roadrunner-plugins) repository. This is the new home for the roadrunner plugins with documentation, configuration samples, and common problems. -- โœ๏ธ **[BETA]** Let's Encrypt support. RR now can obtain an SSL certificate/PK for your domain automatically. Here is the new configuration: +- โœ๏ธ [Roadrunner-plugins](https://github.com/spiral/roadrunner-plugins) repository. This is the new home for the + roadrunner plugins with documentation, configuration samples, and common problems. +- โœ๏ธ **[BETA]** Let's Encrypt support. RR now can obtain an SSL certificate/PK for your domain automatically. Here is + the new configuration: + ```yaml ssl: - # Host and port to listen on (eg.: `127.0.0.1:443`). - # - # Default: ":443" - address: "127.0.0.1:443" - - # Use ACME certificates provider (Let's encrypt) - acme: - # Directory to use as a certificate/pk, account info storage - # - # Optional. Default: rr_cache - certs_dir: rr_le_certs - - # User email - # - # Used to create LE account. Mandatory. Error on empty. - email: you-email-here@email - - # Alternate port for the http challenge. Challenge traffic should be redirected to this port if overridden. - # - # Optional. Default: 80 - alt_http_port: 80, - - - # Alternate port for the tls-alpn-01 challenge. Challenge traffic should be redirected to this port if overridden. - # - # Optional. Default: 443. - alt_tlsalpn_port: 443, - - # Challenge types - # - # Optional. Default: http-01. Possible values: http-01, tlsalpn-01 - challenge_type: http-01 - - # Use production or staging endpoints. NOTE, try to use the staging endpoint (`use_production_endpoint`: `false`) to make sure, that everything works correctly. - # - # Optional, but for production should be set to true. Default: false - use_production_endpoint: true - - # List of your domains to obtain certificates + # Host and port to listen on (eg.: `127.0.0.1:443`). # - # Mandatory. Error on empty. - domains: [ - "your-cool-domain.here", - "your-second-domain.here" - ] + # Default: ":443" + address: "127.0.0.1:443" + + # Use ACME certificates provider (Let's encrypt) + acme: + # Directory to use as a certificate/pk, account info storage + # + # Optional. Default: rr_cache + certs_dir: rr_le_certs + + # User email + # + # Used to create LE account. Mandatory. Error on empty. + email: you-email-here@email + + # Alternate port for the http challenge. Challenge traffic should be redirected to this port if overridden. + # + # Optional. Default: 80 + alt_http_port: 80, + + + # Alternate port for the tls-alpn-01 challenge. Challenge traffic should be redirected to this port if overridden. + # + # Optional. Default: 443. + alt_tlsalpn_port: 443, + + # Challenge types + # + # Optional. Default: http-01. Possible values: http-01, tlsalpn-01 + challenge_type: http-01 + + # Use production or staging endpoints. NOTE, try to use the staging endpoint (`use_production_endpoint`: `false`) to make sure, that everything works correctly. + # + # Optional, but for production should be set to true. Default: false + use_production_endpoint: true + + # List of your domains to obtain certificates + # + # Mandatory. Error on empty. + domains: [ + "your-cool-domain.here", + "your-second-domain.here" + ] ``` - โœ๏ธ Add a new option to the `logs` plugin to configure the line ending. By default, used `\n`. **New option**: + ```yaml # Logs plugin settings logs: @@ -129,90 +138,101 @@ logs: ``` - โœ๏ธ HTTP [Access log support](https://github.com/spiral/roadrunner-plugins/issues/34) at the `Info` log level. + ```yaml http: - address: 127.0.0.1:55555 - max_request_size: 1024 - access_logs: true <-------- Access Logs ON/OFF - middleware: [] - - pool: - num_workers: 2 - max_jobs: 0 - allocate_timeout: 60s - destroy_timeout: 60s + address: 127.0.0.1:55555 + max_request_size: 1024 + access_logs: true <-------- Access Logs ON/OFF + middleware: [ ] + + pool: + num_workers: 2 + max_jobs: 0 + allocate_timeout: 60s + destroy_timeout: 60s ``` -- โœ๏ธ HTTP middleware to handle `X-Sendfile` [header](https://github.com/spiral/roadrunner-plugins/issues/9). - Middleware reads the file in 10MB chunks. So, for example for the 5Gb file, only 10MB of RSS will be used. If the file size is smaller than 10MB, the middleware fits the buffer to the file size. + +- โœ๏ธ HTTP middleware to handle `X-Sendfile` [header](https://github.com/spiral/roadrunner-plugins/issues/9). Middleware + reads the file in 10MB chunks. So, for example for the 5Gb file, only 10MB of RSS will be used. If the file size is + smaller than 10MB, the middleware fits the buffer to the file size. + ```yaml http: - address: 127.0.0.1:44444 - max_request_size: 1024 - middleware: ["sendfile"] <----- NEW MIDDLEWARE - - pool: - num_workers: 2 - max_jobs: 0 - allocate_timeout: 60s - destroy_timeout: 60s + address: 127.0.0.1:44444 + max_request_size: 1024 + middleware: [ "sendfile" ] <----- NEW MIDDLEWARE + + pool: + num_workers: 2 + max_jobs: 0 + allocate_timeout: 60s + destroy_timeout: 60s ``` - โœ๏ธ Service plugin now supports env variables passing to the script/executable/binary/any like in the `server` plugin: + ```yaml service: - some_service_1: - command: "php test_files/loop_env.php" - process_num: 1 - exec_timeout: 5s # s,m,h (seconds, minutes, hours) - remain_after_exit: true - env: <----------------- NEW - foo: "BAR" - restart_sec: 1 + some_service_1: + command: "php test_files/loop_env.php" + process_num: 1 + exec_timeout: 5s # s,m,h (seconds, minutes, hours) + remain_after_exit: true + env: <----------------- NEW + foo: "BAR" + restart_sec: 1 ``` - โœ๏ธ Server plugin can accept scripts (sh, bash, etc) in it's `command` configuration key: + ```yaml server: command: "./script.sh OR sh script.sh" <--- UPDATED relay: "pipes" relay_timeout: "20s" ``` -The script should start a worker as the last command. For the `pipes`, scripts should not contain programs, which can close `stdin`, `stdout` or `stderr`. + +The script should start a worker as the last command. For the `pipes`, scripts should not contain programs, which can +close `stdin`, `stdout` or `stderr`. - โœ๏ธ Nats jobs driver support - [PR](https://github.com/spiral/roadrunner-plugins/pull/68). + ```yaml nats: - addr: "demo.nats.io" + addr: "demo.nats.io" jobs: - num_pollers: 10 - pipeline_size: 100000 - pool: - num_workers: 10 - max_jobs: 0 - allocate_timeout: 60s - destroy_timeout: 60s - - pipelines: - test-1: - driver: nats - prefetch: 100 - subject: "default" - stream: "foo" - deliver_new: "true" - rate_limit: 100 - delete_stream_on_stop: false - delete_after_ack: false - priority: 2 - - consume: [ "test-1" ] + num_pollers: 10 + pipeline_size: 100000 + pool: + num_workers: 10 + max_jobs: 0 + allocate_timeout: 60s + destroy_timeout: 60s + + pipelines: + test-1: + driver: nats + prefetch: 100 + subject: "default" + stream: "foo" + deliver_new: "true" + rate_limit: 100 + delete_stream_on_stop: false + delete_after_ack: false + priority: 2 + + consume: [ "test-1" ] ``` + - Driver uses NATS JetStream API and is not compatible with non-js API. -- โœ๏ธ Response API for the NATS, RabbitMQ, SQS and Beanstalk drivers. This means, that you'll be able to respond to a specified in the response queue. - Limitations: - - To send a response to the queue maintained by the RR, you should send it as a `Job` type. There are no limitations for the responses into the other queues (tubes, subjects). +- โœ๏ธ Response API for the NATS, RabbitMQ, SQS and Beanstalk drivers. This means, that you'll be able to respond to a + specified in the response queue. Limitations: + - To send a response to the queue maintained by the RR, you should send it as a `Job` type. There are no limitations + for the responses into the other queues (tubes, subjects). - Driver uses the same endpoint (address) to send the response as specified in the configuration. ## ๐Ÿฉน Fixes: @@ -235,38 +255,46 @@ jobs: ## ๐Ÿฉน Fixes: -- ๐Ÿ› Fix: bug with not-idempotent call to the `attributes.Init`. -- ๐Ÿ› Fix: memory jobs driver behavior. Now memory driver starts consuming automatically if the user consumes the pipeline in the configuration. +- ๐Ÿ› Fix: bug with not-idempotent call to the `attributes.Init`. +- ๐Ÿ› Fix: memory jobs driver behavior. Now memory driver starts consuming automatically if the user consumes the + pipeline in the configuration. ## v2.4.0 (02.09.2021) ## ๐Ÿ’” Internal BC: -- ๐Ÿ”จ Pool, worker interfaces: payload now passed and returned by the pointer. +- ๐Ÿ”จ Pool, worker interfaces: payload now passed and returned by the pointer. ## ๐Ÿ‘€ New: -- โœ๏ธ Long-awaited, reworked `Jobs` plugin with pluggable drivers. Now you can allocate/destroy pipelines in the runtime. Drivers included in the initial release: `RabbitMQ (0-9-1)`, `SQS v2`, `beanstalk`, `memory` and local queue powered by the `boltdb`. [PR](https://github.com/spiral/roadrunner/pull/726) -- โœ๏ธ Support for the IPv6 (`tcp|http(s)|empty [::]:port`, `tcp|http(s)|empty [::1]:port`, `tcp|http(s)|empty :// [0:0:0:0:0:0:0:1]:port`) for RPC, HTTP and other plugins. [RFC](https://datatracker.ietf.org/doc/html/rfc2732#section-2) -- โœ๏ธ Support for the Docker images via GitHub packages. -- โœ๏ธ Go 1.17 support for the all spiral packages. +- โœ๏ธ Long-awaited, reworked `Jobs` plugin with pluggable drivers. Now you can allocate/destroy pipelines in the runtime. + Drivers included in the initial release: `RabbitMQ (0-9-1)`, `SQS v2`, `beanstalk`, `memory` and local queue powered + by the `boltdb`. [PR](https://github.com/spiral/roadrunner/pull/726) +- โœ๏ธ Support for the IPv6 (`tcp|http(s)|empty [::]:port`, `tcp|http(s)|empty [::1]:port` + , `tcp|http(s)|empty :// [0:0:0:0:0:0:0:1]:port`) for RPC, HTTP and other + plugins. [RFC](https://datatracker.ietf.org/doc/html/rfc2732#section-2) +- โœ๏ธ Support for the Docker images via GitHub packages. +- โœ๏ธ Go 1.17 support for the all spiral packages. ## ๐Ÿฉน Fixes: -- ๐Ÿ› Fix: fixed bug with goroutines waiting on the internal worker's container channel, [issue](https://github.com/spiral/roadrunner/issues/750). -- ๐Ÿ› Fix: RR become unresponsive when new workers failed to re-allocate, [issue](https://github.com/spiral/roadrunner/issues/772). -- ๐Ÿ› Fix: add `debug` pool config key to the `.rr.yaml` configuration [reference](https://github.com/spiral/roadrunner-binary/issues/79). +- ๐Ÿ› Fix: fixed bug with goroutines waiting on the internal worker's container + channel, [issue](https://github.com/spiral/roadrunner/issues/750). +- ๐Ÿ› Fix: RR become unresponsive when new workers failed to + re-allocate, [issue](https://github.com/spiral/roadrunner/issues/772). +- ๐Ÿ› Fix: add `debug` pool config key to the `.rr.yaml` + configuration [reference](https://github.com/spiral/roadrunner-binary/issues/79). ## ๐Ÿ“ฆ Packages: -- ๐Ÿ“ฆ Update goridge to `v3.2.1` -- ๐Ÿ“ฆ Update temporal to `v1.0.9` -- ๐Ÿ“ฆ Update endure to `v1.0.4` +- ๐Ÿ“ฆ Update goridge to `v3.2.1` +- ๐Ÿ“ฆ Update temporal to `v1.0.9` +- ๐Ÿ“ฆ Update endure to `v1.0.4` ## ๐Ÿ“ˆ Summary: -- RR Milestone [2.4.0](https://github.com/spiral/roadrunner/milestone/29?closed=1) -- RR-Binary Milestone [2.4.0](https://github.com/spiral/roadrunner-binary/milestone/10?closed=1) +- RR Milestone [2.4.0](https://github.com/spiral/roadrunner/milestone/29?closed=1) +- RR-Binary Milestone [2.4.0](https://github.com/spiral/roadrunner-binary/milestone/10?closed=1) --- @@ -274,13 +302,13 @@ jobs: ## ๐Ÿฉน Fixes: -- ๐Ÿ› Fix: Do not call the container's Stop method after the container stopped by an error. -- ๐Ÿ› Fix: Bug with ttl incorrectly handled by the worker [PR](https://github.com/spiral/roadrunner/pull/749) -- ๐Ÿ› Fix: Add `RR_BROADCAST_PATH` to the `websockets` plugin [PR](https://github.com/spiral/roadrunner/pull/749) +- ๐Ÿ› Fix: Do not call the container's Stop method after the container stopped by an error. +- ๐Ÿ› Fix: Bug with ttl incorrectly handled by the worker [PR](https://github.com/spiral/roadrunner/pull/749) +- ๐Ÿ› Fix: Add `RR_BROADCAST_PATH` to the `websockets` plugin [PR](https://github.com/spiral/roadrunner/pull/749) ## ๐Ÿ“ˆ Summary: -- RR Milestone [2.3.2](https://github.com/spiral/roadrunner/milestone/31?closed=1) +- RR Milestone [2.3.2](https://github.com/spiral/roadrunner/milestone/31?closed=1) --- @@ -288,32 +316,32 @@ jobs: ## ๐Ÿ‘€ New: -- โœ๏ธ Rework `broadcast` plugin. Add architecture diagrams to the `doc` - folder. [PR](https://github.com/spiral/roadrunner/pull/732) -- โœ๏ธ Add `Clear` method to the KV plugin RPC. [PR](https://github.com/spiral/roadrunner/pull/736) +- โœ๏ธ Rework `broadcast` plugin. Add architecture diagrams to the `doc` + folder. [PR](https://github.com/spiral/roadrunner/pull/732) +- โœ๏ธ Add `Clear` method to the KV plugin RPC. [PR](https://github.com/spiral/roadrunner/pull/736) ## ๐Ÿฉน Fixes: -- ๐Ÿ› Fix: Bug with channel deadlock when `exec_ttl` was used and TTL limit - reached [PR](https://github.com/spiral/roadrunner/pull/738) -- ๐Ÿ› Fix: Bug with healthcheck endpoint when workers were marked as invalid and stay is that state until next - request [PR](https://github.com/spiral/roadrunner/pull/738) -- ๐Ÿ› Fix: Bugs with `boltdb` storage: [Boom](https://github.com/spiral/roadrunner/issues/717) - , [Boom](https://github.com/spiral/roadrunner/issues/718), [Boom](https://github.com/spiral/roadrunner/issues/719) -- ๐Ÿ› Fix: Bug with incorrect redis initialization and usage [Bug](https://github.com/spiral/roadrunner/issues/720) -- ๐Ÿ› Fix: Bug, Goridge duplicate error messages [Bug](https://github.com/spiral/goridge/issues/128) -- ๐Ÿ› Fix: Bug, incorrect request `origin` check [Bug](https://github.com/spiral/roadrunner/issues/727) +- ๐Ÿ› Fix: Bug with channel deadlock when `exec_ttl` was used and TTL limit + reached [PR](https://github.com/spiral/roadrunner/pull/738) +- ๐Ÿ› Fix: Bug with healthcheck endpoint when workers were marked as invalid and stay is that state until next + request [PR](https://github.com/spiral/roadrunner/pull/738) +- ๐Ÿ› Fix: Bugs with `boltdb` storage: [Boom](https://github.com/spiral/roadrunner/issues/717) + , [Boom](https://github.com/spiral/roadrunner/issues/718), [Boom](https://github.com/spiral/roadrunner/issues/719) +- ๐Ÿ› Fix: Bug with incorrect redis initialization and usage [Bug](https://github.com/spiral/roadrunner/issues/720) +- ๐Ÿ› Fix: Bug, Goridge duplicate error messages [Bug](https://github.com/spiral/goridge/issues/128) +- ๐Ÿ› Fix: Bug, incorrect request `origin` check [Bug](https://github.com/spiral/roadrunner/issues/727) ## ๐Ÿ“ฆ Packages: -- ๐Ÿ“ฆ Update goridge to `v3.1.4` -- ๐Ÿ“ฆ Update temporal to `v1.0.8` +- ๐Ÿ“ฆ Update goridge to `v3.1.4` +- ๐Ÿ“ฆ Update temporal to `v1.0.8` ## ๐Ÿ“ˆ Summary: -- RR Milestone [2.3.1](https://github.com/spiral/roadrunner/milestone/30?closed=1) -- Temporal Milestone [1.0.8](https://github.com/temporalio/roadrunner-temporal/milestone/11?closed=1) -- Goridge Milestone [3.1.4](https://github.com/spiral/goridge/milestone/11?closed=1) +- RR Milestone [2.3.1](https://github.com/spiral/roadrunner/milestone/30?closed=1) +- Temporal Milestone [1.0.8](https://github.com/temporalio/roadrunner-temporal/milestone/11?closed=1) +- Goridge Milestone [3.1.4](https://github.com/spiral/goridge/milestone/11?closed=1) --- @@ -321,36 +349,36 @@ jobs: ## ๐Ÿ‘€ New: -- โœ๏ธ Brand new `broadcast` plugin now has the name - `websockets` with broadcast capabilities. It can handle hundreds of - thousands websocket connections very efficiently (~300k messages per second with 1k connected clients, in-memory bus - on 2CPU cores and 1GB of RAM) [Issue](https://github.com/spiral/roadrunner/issues/513) -- โœ๏ธ Protobuf binary messages for the `websockets` and `kv` RPC calls under the - hood. [Issue](https://github.com/spiral/roadrunner/issues/711) -- โœ๏ธ Json-schemas for the config file v1.0 (it also registered - in [schemastore.org](https://github.com/SchemaStore/schemastore/pull/1614)) -- โœ๏ธ `latest` docker image tag supported now (but we strongly recommend using a versioned tag (like `0.2.3`) instead) -- โœ๏ธ Add new option to the `http` config section: `internal_error_code` to override default (500) internal error - code. [Issue](https://github.com/spiral/roadrunner/issues/659) -- โœ๏ธ Expose HTTP plugin metrics (workers memory, requests count, requests duration) - . [Issue](https://github.com/spiral/roadrunner/issues/489) -- โœ๏ธ Scan `server.command` and find errors related to the wrong path to a `PHP` file, or `.ph`, `.sh` - scripts. [Issue](https://github.com/spiral/roadrunner/issues/658) -- โœ๏ธ Support file logger with log rotation [Wiki](https://en.wikipedia.org/wiki/Log_rotation) - , [Issue](https://github.com/spiral/roadrunner/issues/545) +- โœ๏ธ Brand new `broadcast` plugin now has the name - `websockets` with broadcast capabilities. It can handle hundreds of + thousands websocket connections very efficiently (~300k messages per second with 1k connected clients, in-memory bus + on 2CPU cores and 1GB of RAM) [Issue](https://github.com/spiral/roadrunner/issues/513) +- โœ๏ธ Protobuf binary messages for the `websockets` and `kv` RPC calls under the + hood. [Issue](https://github.com/spiral/roadrunner/issues/711) +- โœ๏ธ Json-schemas for the config file v1.0 (it also registered + in [schemastore.org](https://github.com/SchemaStore/schemastore/pull/1614)) +- โœ๏ธ `latest` docker image tag supported now (but we strongly recommend using a versioned tag (like `0.2.3`) instead) +- โœ๏ธ Add new option to the `http` config section: `internal_error_code` to override default (500) internal error + code. [Issue](https://github.com/spiral/roadrunner/issues/659) +- โœ๏ธ Expose HTTP plugin metrics (workers memory, requests count, requests duration) + . [Issue](https://github.com/spiral/roadrunner/issues/489) +- โœ๏ธ Scan `server.command` and find errors related to the wrong path to a `PHP` file, or `.ph`, `.sh` + scripts. [Issue](https://github.com/spiral/roadrunner/issues/658) +- โœ๏ธ Support file logger with log rotation [Wiki](https://en.wikipedia.org/wiki/Log_rotation) + , [Issue](https://github.com/spiral/roadrunner/issues/545) ## ๐Ÿฉน Fixes: -- ๐Ÿ› Fix: Bug with `informer.Workers` worked incorrectly: [Bug](https://github.com/spiral/roadrunner/issues/686) -- ๐Ÿ› Fix: Internal error messages will not be shown to the user (except HTTP status code). Error message will be in - logs: [Bug](https://github.com/spiral/roadrunner/issues/659) -- ๐Ÿ› Fix: Error message will be properly shown in the log in case of `SoftJob` - error: [Bug](https://github.com/spiral/roadrunner/issues/691) -- ๐Ÿ› Fix: Wrong applied middlewares for the `fcgi` server leads to the - NPE: [Bug](https://github.com/spiral/roadrunner/issues/701) +- ๐Ÿ› Fix: Bug with `informer.Workers` worked incorrectly: [Bug](https://github.com/spiral/roadrunner/issues/686) +- ๐Ÿ› Fix: Internal error messages will not be shown to the user (except HTTP status code). Error message will be in + logs: [Bug](https://github.com/spiral/roadrunner/issues/659) +- ๐Ÿ› Fix: Error message will be properly shown in the log in case of `SoftJob` + error: [Bug](https://github.com/spiral/roadrunner/issues/691) +- ๐Ÿ› Fix: Wrong applied middlewares for the `fcgi` server leads to the + NPE: [Bug](https://github.com/spiral/roadrunner/issues/701) ## ๐Ÿ“ฆ Packages: -- ๐Ÿ“ฆ Update goridge to `v3.1.0` +- ๐Ÿ“ฆ Update goridge to `v3.1.0` --- @@ -358,9 +386,9 @@ jobs: ## ๐Ÿฉน Fixes: -- ๐Ÿ› Fix: revert static plugin. It stays as a separate plugin on the main route (`/`) and supports all the previously - announced features. -- ๐Ÿ› Fix: remove `build` and other old targets from the Makefile. +- ๐Ÿ› Fix: revert static plugin. It stays as a separate plugin on the main route (`/`) and supports all the previously + announced features. +- ๐Ÿ› Fix: remove `build` and other old targets from the Makefile. --- @@ -368,21 +396,21 @@ jobs: ## ๐Ÿ‘€ New: -- โœ๏ธ Reworked `static` plugin. Now, it does not affect the performance of the main route and persist on the separate - file server (within the `http` plugin). Looong awaited feature: `Etag` (+ weak Etags) as well with the `If-Mach` - , `If-None-Match`, `If-Range`, `Last-Modified` - and `If-Modified-Since` tags supported. Static plugin has a bunch of new options such as: `allow`, `calculate_etag` - , `weak` and `pattern`. +- โœ๏ธ Reworked `static` plugin. Now, it does not affect the performance of the main route and persist on the separate + file server (within the `http` plugin). Looong awaited feature: `Etag` (+ weak Etags) as well with the `If-Mach` + , `If-None-Match`, `If-Range`, `Last-Modified` + and `If-Modified-Since` tags supported. Static plugin has a bunch of new options such as: `allow`, `calculate_etag` + , `weak` and `pattern`. - ### Option `always` was deleted from the plugin. + ### Option `always` was deleted from the plugin. -- โœ๏ธ Update `informer.List` implementation. Now it returns a list with the all available plugins in the runtime. +- โœ๏ธ Update `informer.List` implementation. Now it returns a list with the all available plugins in the runtime. ## ๐Ÿฉน Fixes: -- ๐Ÿ› Fix: issue with wrong ordered middlewares (reverse). Now the order is correct. -- ๐Ÿ› Fix: issue when RR fails if a user sets `debug` mode with the `exec_ttl` supervisor option. -- ๐Ÿ› Fix: uniform log levels. Use everywhere the same levels (warn, error, debug, info, panic). +- ๐Ÿ› Fix: issue with wrong ordered middlewares (reverse). Now the order is correct. +- ๐Ÿ› Fix: issue when RR fails if a user sets `debug` mode with the `exec_ttl` supervisor option. +- ๐Ÿ› Fix: uniform log levels. Use everywhere the same levels (warn, error, debug, info, panic). --- @@ -390,102 +418,102 @@ jobs: ## ๐Ÿฉน Fixes: -- ๐Ÿ› Fix: issue with endure provided wrong logger interface implementation. +- ๐Ÿ› Fix: issue with endure provided wrong logger interface implementation. ## v2.1.0 (27.04.2021) ## ๐Ÿ‘€ New: -- โœ๏ธ New `service` plugin. Docs: [link](https://roadrunner.dev/docs/beep-beep-service) -- โœ๏ธ Stabilize `kv` plugin with `boltdb`, `in-memory`, `memcached` and `redis` drivers. +- โœ๏ธ New `service` plugin. Docs: [link](https://roadrunner.dev/docs/beep-beep-service) +- โœ๏ธ Stabilize `kv` plugin with `boltdb`, `in-memory`, `memcached` and `redis` drivers. ## ๐Ÿฉน Fixes: -- ๐Ÿ› Fix: Logger didn't provide an anonymous log instance to a plugins w/o `Named` interface implemented. -- ๐Ÿ› Fix: http handler was without log listener after `rr reset`. +- ๐Ÿ› Fix: Logger didn't provide an anonymous log instance to a plugins w/o `Named` interface implemented. +- ๐Ÿ› Fix: http handler was without log listener after `rr reset`. ## v2.0.4 (06.04.2021) ## ๐Ÿ‘€ New: -- โœ๏ธ Add support for `linux/arm64` platform for docker image (thanks @tarampampam). -- โœ๏ธ Add dotenv file support (`.env` in working directory by default; file location can be changed using CLI - flag `--dotenv` or `DOTENV_PATH` environment variable) (thanks @tarampampam). -- ๐Ÿ“œ Add a new `raw` mode for the `logger` plugin to keep the stderr log message of the worker unmodified (logger - severity level should be at least `INFO`). -- ๐Ÿ†• Add Readiness probe check. The `status` plugin provides `/ready` endpoint which return the `204` HTTP code if there - are no workers in the `Ready` state and `200 OK` status if there are at least 1 worker in the `Ready` state. +- โœ๏ธ Add support for `linux/arm64` platform for docker image (thanks @tarampampam). +- โœ๏ธ Add dotenv file support (`.env` in working directory by default; file location can be changed using CLI + flag `--dotenv` or `DOTENV_PATH` environment variable) (thanks @tarampampam). +- ๐Ÿ“œ Add a new `raw` mode for the `logger` plugin to keep the stderr log message of the worker unmodified (logger + severity level should be at least `INFO`). +- ๐Ÿ†• Add Readiness probe check. The `status` plugin provides `/ready` endpoint which return the `204` HTTP code if there + are no workers in the `Ready` state and `200 OK` status if there are at least 1 worker in the `Ready` state. ## ๐Ÿฉน Fixes: -- ๐Ÿ› Fix: bug with the temporal worker which does not follow general graceful shutdown period. +- ๐Ÿ› Fix: bug with the temporal worker which does not follow general graceful shutdown period. ## v2.0.3 (29.03.2021) ## ๐Ÿฉน Fixes: -- ๐Ÿ› Fix: slow last response when reached `max_jobs` limit. +- ๐Ÿ› Fix: slow last response when reached `max_jobs` limit. ## v2.0.2 (06.04.2021) -- ๐Ÿ› Fix: Bug with required Root CA certificate for the SSL, now it's optional. -- ๐Ÿ› Fix: Bug with incorrectly consuming metrics collector from the RPC calls (thanks @dstrop). -- ๐Ÿ†• New: HTTP/FCGI/HTTPS internal logs instead of going to the raw stdout will be displayed in the RR logger at - the `Info` log level. -- โšก New: Builds for the Mac with the M1 processor (arm64). -- ๐Ÿ‘ท Rework ServeHTTP handler logic. Use http.Error instead of writing code directly to the response writer. Other small - improvements. +- ๐Ÿ› Fix: Bug with required Root CA certificate for the SSL, now it's optional. +- ๐Ÿ› Fix: Bug with incorrectly consuming metrics collector from the RPC calls (thanks @dstrop). +- ๐Ÿ†• New: HTTP/FCGI/HTTPS internal logs instead of going to the raw stdout will be displayed in the RR logger at + the `Info` log level. +- โšก New: Builds for the Mac with the M1 processor (arm64). +- ๐Ÿ‘ท Rework ServeHTTP handler logic. Use http.Error instead of writing code directly to the response writer. Other small + improvements. ## v2.0.1 (09.03.2021) -- ๐Ÿ› Fix: incorrect PHP command validation -- ๐Ÿ› Fix: ldflags properly inject RR version -- โฌ†๏ธ Update: README, links to the go.pkg from v1 to v2 -- ๐Ÿ“ฆ Bump golang version in the Dockerfile and in the `go.mod` to 1.16 -- ๐Ÿ“ฆ Bump Endure container to v1.0.0. +- ๐Ÿ› Fix: incorrect PHP command validation +- ๐Ÿ› Fix: ldflags properly inject RR version +- โฌ†๏ธ Update: README, links to the go.pkg from v1 to v2 +- ๐Ÿ“ฆ Bump golang version in the Dockerfile and in the `go.mod` to 1.16 +- ๐Ÿ“ฆ Bump Endure container to v1.0.0. ## v2.0.0 (02.03.2021) -- โœ”๏ธ Add a shared server to create PHP worker pools instead of isolated worker pool in each individual plugin. -- ๐Ÿ†• New plugin system with auto-recovery, easier plugin API. -- ๐Ÿ“œ New `logger` plugin to configure logging for each plugin individually. -- ๐Ÿ” Up to 50% performance increase in HTTP workloads. -- โœ”๏ธ Add **[Temporal Workflow](https://temporal.io)** plugin to run distributed computations on scale. -- โœ”๏ธ Add `debug` flag to reload PHP worker ahead of a request (emulates PHP-FPM behavior). -- โŒ Eliminate `limit` service, now each worker pool includes `supervisor` configuration. -- ๐Ÿ†• New resetter, informer plugins to perform hot reloads and observe loggers in a system. -- ๐Ÿ’ซ Expose more HTTP plugin configuration options. -- ๐Ÿ†• Headers, static and gzip services now located in HTTP config. -- ๐Ÿ†• Ability to configure the middleware sequence. -- ๐Ÿ’ฃ Faster Goridge protocol (eliminated 50% of syscalls). -- ๐Ÿ’พ Add support for binary payloads for RPC (`msgpack`). -- ๐Ÿ†• Server no longer stops when a PHP worker dies (attempts to restart). -- ๐Ÿ’พ New RR binary server downloader. -- ๐Ÿ’ฃ Echoing no longer breaks execution (yay!). -- ๐Ÿ†• Migration to ZapLogger instead of Logrus. -- ๐Ÿ’ฅ RR can no longer stuck when studding down with broken tasks in a pipeline. -- ๐Ÿงช More tests, more static analysis. -- ๐Ÿ’ฅ Create a new foundation for new KV, WebSocket, GRPC and Queue plugins. +- โœ”๏ธ Add a shared server to create PHP worker pools instead of isolated worker pool in each individual plugin. +- ๐Ÿ†• New plugin system with auto-recovery, easier plugin API. +- ๐Ÿ“œ New `logger` plugin to configure logging for each plugin individually. +- ๐Ÿ” Up to 50% performance increase in HTTP workloads. +- โœ”๏ธ Add **[Temporal Workflow](https://temporal.io)** plugin to run distributed computations on scale. +- โœ”๏ธ Add `debug` flag to reload PHP worker ahead of a request (emulates PHP-FPM behavior). +- โŒ Eliminate `limit` service, now each worker pool includes `supervisor` configuration. +- ๐Ÿ†• New resetter, informer plugins to perform hot reloads and observe loggers in a system. +- ๐Ÿ’ซ Expose more HTTP plugin configuration options. +- ๐Ÿ†• Headers, static and gzip services now located in HTTP config. +- ๐Ÿ†• Ability to configure the middleware sequence. +- ๐Ÿ’ฃ Faster Goridge protocol (eliminated 50% of syscalls). +- ๐Ÿ’พ Add support for binary payloads for RPC (`msgpack`). +- ๐Ÿ†• Server no longer stops when a PHP worker dies (attempts to restart). +- ๐Ÿ’พ New RR binary server downloader. +- ๐Ÿ’ฃ Echoing no longer breaks execution (yay!). +- ๐Ÿ†• Migration to ZapLogger instead of Logrus. +- ๐Ÿ’ฅ RR can no longer stuck when studding down with broken tasks in a pipeline. +- ๐Ÿงช More tests, more static analysis. +- ๐Ÿ’ฅ Create a new foundation for new KV, WebSocket, GRPC and Queue plugins. ## v2.0.0-RC.4 (20.02.2021) -- PHP tests use latest signatures (https://github.com/spiral/roadrunner/pull/550). -- Endure container update to v1.0.0-RC.2 version. -- Remove unneeded mutex from the `http.Workers` method. -- Rename `checker` plugin package to `status`, remove `/v1` endpoint prefix (#557). -- Add static, headers, status, gzip plugins to the `main.go`. -- Fix workers pool behavior -> idle_ttl, ttl, max_memory are soft errors and exec_ttl is hard error. +- PHP tests use latest signatures (https://github.com/spiral/roadrunner/pull/550). +- Endure container update to v1.0.0-RC.2 version. +- Remove unneeded mutex from the `http.Workers` method. +- Rename `checker` plugin package to `status`, remove `/v1` endpoint prefix (#557). +- Add static, headers, status, gzip plugins to the `main.go`. +- Fix workers pool behavior -> idle_ttl, ttl, max_memory are soft errors and exec_ttl is hard error. ## v2.0.0-RC.3 (17.02.2021) -- Add support for the overwriting `.rr.yaml` keys with values (ref: https://roadrunner.dev/docs/intro-config) -- Make logger plugin optional to define in the config. Default values: level -> `debug`, mode -> `development` -- Add the ability to read env variables from the `.rr.yaml` in the form of: `rpc.listen: {RPC_ADDR}`. Reference: - ref: https://roadrunner.dev/docs/intro-config (Environment Variables paragraph) +- Add support for the overwriting `.rr.yaml` keys with values (ref: https://roadrunner.dev/docs/intro-config) +- Make logger plugin optional to define in the config. Default values: level -> `debug`, mode -> `development` +- Add the ability to read env variables from the `.rr.yaml` in the form of: `rpc.listen: {RPC_ADDR}`. Reference: + ref: https://roadrunner.dev/docs/intro-config (Environment Variables paragraph) ## v2.0.0-RC.2 (11.02.2021) -- Update RR to version v2.0.0-RC.2 -- Update Temporal plugin to version v2.0.0-RC.1 -- Update Goridge to version v3.0.1 -- Update Endure to version v1.0.0-RC.1 +- Update RR to version v2.0.0-RC.2 +- Update Temporal plugin to version v2.0.0-RC.1 +- Update Goridge to version v3.0.1 +- Update Endure to version v1.0.0-RC.1 diff --git a/go.mod b/go.mod index 2a0addd..42e2712 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/spiral/endure v1.0.6 github.com/spiral/errors v1.0.12 github.com/spiral/goridge/v3 v3.2.3 - github.com/spiral/roadrunner-plugins/v2 v2.5.1 + github.com/spiral/roadrunner-plugins/v2 v2.5.2 github.com/spiral/roadrunner/v2 v2.5.0 // --------------------- github.com/stretchr/testify v1.7.0 @@ -126,10 +126,10 @@ require ( golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect golang.org/x/net v0.0.0-20211020060615-d418f374d309 // indirect golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect - golang.org/x/sys v0.0.0-20211022215931-8e5104632af7 // indirect + golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359 // indirect golang.org/x/text v0.3.7 // indirect golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect - google.golang.org/genproto v0.0.0-20211021150943-2b146023228c // indirect + google.golang.org/genproto v0.0.0-20211026145609-4688e4c4e024 // indirect google.golang.org/grpc v1.41.0 // indirect google.golang.org/protobuf v1.27.1 // indirect gopkg.in/ini.v1 v1.63.2 // indirect diff --git a/go.sum b/go.sum index 32d60bb..a568866 100644 --- a/go.sum +++ b/go.sum @@ -529,8 +529,8 @@ github.com/spiral/errors v1.0.12/go.mod h1:j5UReqxZxfkwXkI9mFY87VhEXcXmSg7kAk5Ss github.com/spiral/goridge/v3 v3.2.3 h1:iNz6aD/c00hC50wo+qT8uP5ZZ3VdCAERXUtNiyDE3Yo= github.com/spiral/goridge/v3 v3.2.3/go.mod h1:DA4Ekw9qVcTvVouUNJgxESXURBHZ2SfkliCEIpEl9lA= github.com/spiral/roadrunner-plugins/v2 v2.5.0/go.mod h1:ngs+cj96654/cmIHS3c6JWliVjehrv7bkUSmNymXehU= -github.com/spiral/roadrunner-plugins/v2 v2.5.1 h1:G8c5+97Gn8zy32fj5Pm6Wj2h1fKubnP9LS1oe5ncvsI= -github.com/spiral/roadrunner-plugins/v2 v2.5.1/go.mod h1:YKGBMaY1aJV2QUhLEY6J0+Lzz62lWAoD6aqgPMK+8yM= +github.com/spiral/roadrunner-plugins/v2 v2.5.2 h1:5wN/LJ0FQuPzlErTogaQ5LOoqK0XIHuzrQ0lwesMef0= +github.com/spiral/roadrunner-plugins/v2 v2.5.2/go.mod h1:YKGBMaY1aJV2QUhLEY6J0+Lzz62lWAoD6aqgPMK+8yM= github.com/spiral/roadrunner/v2 v2.5.0 h1:SyqLdExFdX9HFGaiV0qeneaZTJxz9oM9D6qwu0Co1j0= github.com/spiral/roadrunner/v2 v2.5.0/go.mod h1:ZjmyfOy5eWRWJwb1yxQAFFhufw1bBYtbxq8F8yqZbHI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -830,10 +830,11 @@ golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210910150752-751e447fb3d0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211015200801-69063c4bb744/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211020174200-9d6173849985 h1:LOlKVhfDyahgmqa97awczplwkjzNaELFg3zRIJ13RYo= golang.org/x/sys v0.0.0-20211020174200-9d6173849985/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211022215931-8e5104632af7 h1:e2q1CMOFXDvurT2sa2yhJAkuA2n8Rd9tMDd7Tcfvs6M= golang.org/x/sys v0.0.0-20211022215931-8e5104632af7/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359 h1:2B5p2L5IfGiD7+b9BOoRMC6DgObAVZV+Fsp050NqXik= +golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1017,6 +1018,8 @@ google.golang.org/genproto v0.0.0-20211016002631-37fc39342514/go.mod h1:5CzLGKJ6 google.golang.org/genproto v0.0.0-20211018162055-cf77aa76bad2/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c h1:FqrtZMB5Wr+/RecOM3uPJNPfWR8Upb5hAPnt7PU6i4k= google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211026145609-4688e4c4e024 h1:aePO4E0x+Urj9V5NQHjqOpaNG4oMeHQq0l2ob05z5tI= +google.golang.org/genproto v0.0.0-20211026145609-4688e4c4e024/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=