async-service-supervisor 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6452960a45d9826d2e779d54ff18c5009fc678721de4da210c1ed7e2fc9248d3
4
- data.tar.gz: 53a8015e7205c698268975621f14205d0f39546138d06f6a1496e1897fd1f0b1
3
+ metadata.gz: 40d92dff9ef46f5a5864fb8c013d3756c89b0941568cbb8fad482b3d5980c26e
4
+ data.tar.gz: b5ca32ff2ade3e7e07bc58e4b9a52d7dabb8df87f33001907fec2032ad9977da
5
5
  SHA512:
6
- metadata.gz: 543facc8525ffec8e9e05c231c1f7953e764268e2e8da9a6de2bae2aad3170d195cf3cac2d38dcb53df7e49ad5b27242044b6cf285245762322602f26f645df5
7
- data.tar.gz: 9a55a1fd5a30289cec9864dfb629179e1c30298962928f728dcb395ca2c49368c8f20b16bcdeabfad1d71ce56df82e794bd6e8a90777ce5295cfa4d37305e5f6
6
+ metadata.gz: 66e3fe09be98818698e57e38070e55ef5fad22123ddeda1c15685426f5a90ab37d77b8a2da1f10ae2ebf69549f8c402870b6c535f30505b5db092e446f052c6f
7
+ data.tar.gz: a52324ca442e95f5161a93ebc562eebfb23838c59452a0e0d517d99686f6e7f17e696d7a1c386f34dd193252c33a96a2ff2ee026becd96a32bb55c09d7e1e967
checksums.yaml.gz.sig CHANGED
Binary file
@@ -38,6 +38,7 @@ module Async
38
38
  @segment_size = segment_size
39
39
  @growth_factor = growth_factor
40
40
 
41
+ File.unlink(path) rescue nil
41
42
  @file = File.open(path, "w+b")
42
43
  @file.truncate(size)
43
44
  # Supervisor maps the file for reading worker data
@@ -9,7 +9,7 @@ module Async
9
9
  module Service
10
10
  # @namespace
11
11
  module Supervisor
12
- VERSION = "0.13.0"
12
+ VERSION = "0.13.1"
13
13
  end
14
14
  end
15
15
  end
data/readme.md CHANGED
@@ -1,16 +1,14 @@
1
1
  # Async::Service::Supervisor
2
2
 
3
- Provides a supervisor service for
3
+ Provides a process supervision system for `async-service` applications, built on top of `Async::Bus` for reliable IPC between a supervisor process and its workers.
4
4
 
5
5
  [![Development Status](https://github.com/socketry/async-service-supervisor/workflows/Test/badge.svg)](https://github.com/socketry/async-service-supervisor/actions?workflow=Test)
6
6
 
7
7
  ## Features
8
8
 
9
- - Supports multi-process, multi-thread and hybrid containers.
10
- - Automatic scalability based on physical hardware.
11
- - Direct integration with [systemd](https://www.freedesktop.org/software/systemd/man/sd_notify.html) using `$NOTIFY_SOCKET`.
12
- - Internal process readiness protocol for handling state changes.
13
- - Automatic restart of failed processes.
9
+ - Workers connect to the supervisor process via IPC and report their lifecycle.
10
+ - Remote diagnostics: workers expose memory dump and scheduler dump operations via the supervisor.
11
+ - Provides a flexible framework for monitoring worker processes and taking action when issues are detected (e.g. memory leaks, high CPU usage, etc.).
14
12
 
15
13
  ## Usage
16
14
 
@@ -30,6 +28,10 @@ Please see the [project documentation](https://socketry.github.io/async-service-
30
28
 
31
29
  Please see the [project releases](https://socketry.github.io/async-service-supervisor/releases/index) for all releases.
32
30
 
31
+ ### v0.13.1
32
+
33
+ - Unlink shared memory file before opening on supervisor restart, preventing SIGBUS when workers still have the file mapped.
34
+
33
35
  ### v0.13.0
34
36
 
35
37
  - Add `worker_count` to `UtilizationMonitor` aggregated metrics per service, indicating how many workers contributed to each service's metrics (useful for utilization denominator).
@@ -75,10 +77,6 @@ Please see the [project releases](https://socketry.github.io/async-service-super
75
77
 
76
78
  - Make client task (in supervised worker) transient, so that it doesn't keep the reactor alive unnecessarily. It also won't be stopped by default when SIGINT is received, so that the worker will remain connected to the supervisor until the worker is completely terminated.
77
79
 
78
- ### v0.6.3
79
-
80
- - Add agent context documentation.
81
-
82
80
  ## Contributing
83
81
 
84
82
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.13.1
4
+
5
+ - Unlink shared memory file before opening on supervisor restart, preventing SIGBUS when workers still have the file mapped.
6
+
3
7
  ## v0.13.0
4
8
 
5
9
  - Add `worker_count` to `UtilizationMonitor` aggregated metrics per service, indicating how many workers contributed to each service's metrics (useful for utilization denominator).
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- �&�`���� �~J���07Ae��E�F)W��ڪ �<��@7QoQ9�O��(�#U�<���>T5�����)��Y8��hVMxJ�����d�$�o ��%pL�/rSgab̌t�:.��p� -X�UM�p���&�����X߀W������;6���N��������c�:�"������n�/R$V|�h=!�;�!=����cW3֩�k�-��0��LW!��m��9���,nﬦ���2Z򂠽�j�n8ܾ������˙_�J� 滴܌BD���$m��,��{���
2
- ��rѫ4��I�esoV+�y_*!Λ�
1
+ �-,?��N�V�W��y����Y z�d�H��K�=MLǗ0.�TO�&6��i���l���(ɞ�YxЋ�4��p��A`.OLir��;�أ `8%M� 3-X�\%�~� М�zMO8��K{d�J*@/%�>)h
2
+ %�X�/s�ۡ%I�`G�1"V+�X��z��χ$���Е���}�P1� h1�7���[f#.��j�|���%/�X�W��@� @!�F�M�x*B�E�I�k��*�~y9m�L��< ��fA��/�R��c�>�ݛ)���0J���O6�>�Xqx�2��R�C 2�Hp�����/�奔/d| 3�9��{y����<�Z�NF�� 1�����C���P�az'e\R;�����v
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-service-supervisor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file