Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
#88: feat(pre-release) v2.4.0-beta.1 pre-release
Browse files Browse the repository at this point in the history
#88: feat(pre-release) `v2.4.0-beta.1` pre-release
  • Loading branch information
rustatian committed Aug 20, 2021
2 parents f9a2106 + b037501 commit 9daaeb2
Show file tree
Hide file tree
Showing 13 changed files with 643 additions and 314 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.6
go-version: 1.17

- name: Check out code
uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Run linter
uses: golangci/golangci-lint-action@v2 # Action page: <https://github.com/golangci/golangci-lint-action>
with:
version: v1.41 # without patch version
version: v1.42 # without patch version
only-new-issues: false # show only new issues if it's a pull request
args: --timeout=10m

Expand All @@ -54,7 +54,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.6
go-version: 1.17

- name: Check out code
uses: actions/checkout@v2
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2 # action page: <https://github.com/actions/setup-go>
with:
go-version: 1.16.6
go-version: 1.17

- name: Check out code
uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
.idea
builds/
tests/vendor/
.rr-sample.yaml
unit_tests
unit_tests_copied
dir1
coverage
/rr
rr.exe
.rr-sample-bench.yaml
.rr-with-temporal.yaml
.rr-sample.yaml
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ run:
skip-dirs:
- .github
- .git
modules-download-mode: readonly
allow-parallel-runners: true

output:
Expand Down
2 changes: 1 addition & 1 deletion .rr-sample-bench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ http:
middleware: [ ]
trusted_subnets: [ "10.0.0.0/8", "127.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "::1/128", "fc00::/7", "fe80::/10" ]
pool:
num_workers: 10
num_workers: 64
max_jobs: 0
allocate_timeout: 60s
destroy_timeout: 60s
Expand Down
23 changes: 23 additions & 0 deletions .rr-with-temporal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
rpc:
listen: unix:///tmp/rr.sock

server:
command: "php ../roadrunner/tests/temporal-worker.php"
relay: "pipes"
relay_timeout: "20s"

temporal:
address: 127.0.0.1:7233
activities:
debug: false
num_workers: 5
max_jobs: 64
allocate_timeout: 60s
destroy_timeout: 60s
codec: proto
debug_level: 2

logs:
mode: production
level: debug

29 changes: 28 additions & 1 deletion .rr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,33 @@ temporal:
# Default: "127.0.0.1:7233"
address: 127.0.0.1:7233

# Sticky cache size. Sticky workflow execution is the affinity
# between workflow tasks of a specific workflow execution to a specific worker. The benefit of sticky execution is that
# the workflow does not have to reconstruct state by replaying history from the beginning. The cache is shared between
# workers running within same process. This must be called before any worker is started. If not called, the default
# size of 10K (which may change) will be used.
#
# Default: 10_000
cache_size: 10000

# Temporal metrics
#
# Optional section
metrics:
# Server metrics address
#
# Required for the production. Default: 127.0.0.1:9091, for the metrics 127.0.0.1:9091/metrics
address: 127.0.0.1:9091
# Metrics type
#
# Default: "summary". Supported values: summary, histogram
type: "summary"

# Temporal metrics prefix
#
# Default: (empty)
prefix: "foobar"

# Activities pool settings.
activities:
# Debug mode for the pool. In this mode, pool will not pre-allocate the worker. Worker (only 1, num_workers ignored) will be allocated right after the request arrived.
Expand Down Expand Up @@ -179,7 +206,7 @@ temporal:

# Debugging level (only for "json" codec). Set 0 for nothing, 1 for "normal", and 2 for colorized messages.
#
# Default: 1
# Default: 0
debug_level: 2

# KV plugin settings. Available drivers: boltdb, redis, memcached, memory.
Expand Down
16 changes: 9 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,31 @@ v2.4.0 (-.08.2021)

## 💔 Internal BC:

- 🔨 Pool, worker interfaces: payload now passed and returned by 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`, `ephemeral`
. [PR](https://github.com/spiral/roadrunner/pull/726)
- ✏️ 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`, `ephemeral`. [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)
- Go 1.17 support.

## 🩹 Fixes:

- 🐛 Fix: add `debug` pool config key to the `.rr.yaml`
configuration [reference](https://github.com/spiral/roadrunner-binary/issues/79).
- 🐛 Fix: fixed bug with waiting goroutines on the internal worker's container channel.
- 🐛 Fix: fixed bug with goroutines waiting on the internal worker's container channel.

## 📦 Packages:

- 📦 Update goridge to `v3.2.0`
- 📦 Update goridge to `v3.2.1`
- 📦 Update temporal to `v1.0.9`
- 📦 Update RR to `v2.4.0`

## 📈 Summary:

- RR Milestone [2.4.0](https://github.com/spiral/roadrunner/milestones/2.4.0)
- RR Milestone [2.4.0](https://github.com/spiral/roadrunner/milestones/2.4.0?closed=1)
- RR-Binary Milestone [2.4.0](https://github.com/spiral/roadrunner-binary/milestone/10?closed=1)

v2.3.2 (14.07.2021)
-------------------
Expand Down
2 changes: 1 addition & 1 deletion Makefile.docker
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Makefile manual (en): <https://www.gnu.org/software/make/manual/html_node/index.html#SEC_Contents>

SHELL = /bin/sh
GO_VERSION = 1.16.2
GO_VERSION = 1.17
DOCKER_GO_RUN_ARGS = --rm -v "$(shell pwd):/src" -w "/src" -u "$(shell id -u):$(shell id -g)" -e "GOPATH=/tmp" -e "HOME=/tmp"

.PHONY : help build fmt lint gotest test
Expand Down
118 changes: 110 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,23 +1,125 @@
module github.com/spiral/roadrunner-binary/v2

go 1.16
go 1.17

require (
github.com/buger/goterm v0.0.0-20200322175922-2f3e71b85129
github.com/buger/goterm v1.0.1
github.com/dustin/go-humanize v1.0.0
github.com/fatih/color v1.12.0
github.com/joho/godotenv v1.3.0
github.com/kami-zh/go-capturer v0.0.0-20171211120116-e492ea43421d
github.com/mattn/go-runewidth v0.0.13
github.com/olekukonko/tablewriter v0.0.5
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.2.1
// SPIRAL ------------
github.com/spiral/endure v1.0.2
github.com/spiral/errors v1.0.11
github.com/spiral/goridge/v3 v3.2.0
github.com/spiral/roadrunner/v2 v2.4.0-alpha.1
github.com/spiral/endure v1.0.3
github.com/spiral/errors v1.0.12
github.com/spiral/goridge/v3 v3.2.1
github.com/spiral/roadrunner/v2 v2.4.0-beta.1
// ---------------------
github.com/stretchr/testify v1.7.0
github.com/temporalio/roadrunner-temporal v1.0.9-alpha.1
github.com/temporalio/roadrunner-temporal v1.0.9-beta.1
github.com/vbauerster/mpb/v5 v5.4.0
)

require (
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/VividCortex/ewma v1.2.0 // indirect
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect
github.com/andybalholm/brotli v1.0.3 // indirect
github.com/aws/aws-sdk-go-v2 v1.8.1 // indirect
github.com/aws/aws-sdk-go-v2/config v1.6.1 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.3.3 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.4.1 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.2.1 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.3 // indirect
github.com/aws/aws-sdk-go-v2/service/sqs v1.7.2 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.3.3 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.6.2 // indirect
github.com/aws/smithy-go v1.7.0 // indirect
github.com/beanstalkd/go-beanstalk v0.1.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b // indirect
github.com/cenkalti/backoff/v4 v4.1.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/facebookgo/clock v0.0.0-20150410010913-600d898af40a // indirect
github.com/fasthttp/websocket v1.4.3 // indirect
github.com/fsnotify/fsnotify v1.5.0 // indirect
github.com/go-ole/go-ole v1.2.5 // indirect
github.com/go-redis/redis/v8 v8.11.3 // indirect
github.com/gofiber/fiber/v2 v2.17.0 // indirect
github.com/gogo/googleapis v1.4.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/gogo/status v1.1.0 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/json-iterator/go v1.1.11 // indirect
github.com/klauspost/compress v1.13.4 // indirect
github.com/m3db/prometheus_client_golang v0.8.1 // indirect
github.com/m3db/prometheus_client_model v0.1.0 // indirect
github.com/m3db/prometheus_common v0.1.0 // indirect
github.com/m3db/prometheus_procfs v0.8.1 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.13 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pborman/uuid v1.2.1 // indirect
github.com/pelletier/go-toml v1.9.3 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.11.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.30.0 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/rabbitmq/amqp091-go v0.0.0-20210812094702-b2a427eb7d17 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/robfig/cron v1.2.0 // indirect
github.com/savsgio/gotils v0.0.0-20210617111740-97865ed5a873 // indirect
github.com/shirou/gopsutil v3.21.7+incompatible // indirect
github.com/smartystreets/assertions v1.1.1 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.8.1 // indirect
github.com/stretchr/objx v0.3.0 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
github.com/tklauser/go-sysconf v0.3.8 // indirect
github.com/tklauser/numcpus v0.3.0 // indirect
github.com/twmb/murmur3 v1.1.6 // indirect
github.com/uber-go/tally v3.4.2+incompatible // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.29.0 // indirect
github.com/valyala/tcplisten v1.0.0 // indirect
github.com/vmihailenco/msgpack/v5 v5.3.4 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
go.etcd.io/bbolt v1.3.6 // indirect
go.temporal.io/api v1.4.1-0.20210420220407-6f00f7f98373 // indirect
go.temporal.io/sdk v1.9.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.7.0 // indirect
go.uber.org/zap v1.19.0 // indirect
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c // 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-20210820002220-43fce44e7af1 // indirect
google.golang.org/grpc v1.40.0 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
Loading

0 comments on commit 9daaeb2

Please sign in to comment.