-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(deadline): configure worker log listener port #257
Conversation
@@ -178,16 +186,23 @@ export interface WorkerInstanceConfigurationProps { | |||
* environments. | |||
*/ | |||
export class WorkerInstanceConfiguration extends Construct { | |||
private static readonly DEFAULT_WORKER_PORT = 56032; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious... randomly selected? Or is this a standard port for Deadline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a random selection, from what I've seen Deadline always randomizes this port. I couldn't find any other common software using this port and it's in the dynamic port range defined by IANA.
@@ -178,16 +186,23 @@ export interface WorkerInstanceConfigurationProps { | |||
* environments. | |||
*/ | |||
export class WorkerInstanceConfiguration extends Construct { | |||
private static readonly DEFAULT_WORKER_PORT = 56032; | |||
|
|||
public readonly logListenerPort: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have a docstring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
packages/aws-rfdk/lib/deadline/test/worker-configuration.test.ts
Outdated
Show resolved
Hide resolved
Fixes #190 Either a default port or a user supplied port will be configured for all workers to listen on, for remote requests such as requsting their log stream. A helper method is also provided to open up the port in the worker fleet's security group to any provided IConnectable, like another security group or a CIDR.
Fixes #190
Either a default port or a user supplied port will be configured for all
workers to listen on, for requests for their log stream. A helper method
is also provided to open up the port in the worker fleet's security
group to any provided IConnectable, like another security group or a CIDR.
Testing
I followed these steps for testing:
a. Added a Windows worker fleet added alongside the Linux fleet.
b. Opened up the worker log listener ports in both fleets for the CIDR
10.0.0.0/24
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license