Skip to content
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

generate shorter pseudo-random IDs with better spread than current time #1122

Open
benclifford opened this issue Jul 8, 2019 · 4 comments
Open
Labels
outreachy Good initial contributions for Outreachy applicants

Comments

@benclifford
Copy link
Collaborator

There are lots of places in the code where unique IDs are generated mostly based on the current time. That's a big ID space but with lots of correlation between IDs generated by the same run. At some scale these will clash and cause non-deterministic trouble that will be hard to debug.

There is plenty of experience in the world using more spread IDs (c.f. UUIDs)

Everywhere time() is used to generate unique IDs should be replaced by a call to a parsl helper function that does this more sensibly.

@benclifford benclifford changed the title generate pseudo-random IDs with better spread than current time generate shorter pseudo-random IDs with better spread than current time Aug 29, 2019
@benclifford
Copy link
Collaborator Author

crossref #831

@benclifford
Copy link
Collaborator Author

A name such as parsl.localprovider.1684151141.6619916.sh.out contains around 56 bits of potentially distinguishing information: 17 digits * log_2 10 bits per digit.

(noting here since I just calculated it for other purposes)

benclifford added a commit that referenced this issue May 15, 2023
Prior to this PR, submit script filenames looked like this:

parsl.localprovider.1684151066.651144.sh

After this PR, submit script filenames look like this:

parsl.htex_Local.block-0.1684154520.747874.sh

This PR fixes feature request issue #2692, which requests that the
filename contain more block identifying context, for correlation with
other block-related log files.

Also adds some more uniqueness which is relevant to issue #1122 and
addresses the naming collisions I have experienced in that context.
benclifford added a commit that referenced this issue May 25, 2023
…2710)

Prior to this PR, submit script filenames looked like this:

parsl.localprovider.1684151066.651144.sh

After this PR, submit script filenames look like this:

parsl.htex_Local.block-0.1684154520.747874.sh

This PR fixes feature request issue #2692, which requests that the filename contain more block identifying context, for correlation with other block-related log files.

Also adds some more uniqueness which is relevant to issue #1122 and addresses the naming collisions I have experienced in that context.
@benclifford benclifford added the outreachy Good initial contributions for Outreachy applicants label Mar 13, 2024
@OfficialOzioma
Copy link

Hi @benclifford is this issue still open, i will like to work on it, and i will need some guidance on how to get started thank you

@rjmello
Copy link
Member

rjmello commented Oct 21, 2024

Crossref: #3639

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
outreachy Good initial contributions for Outreachy applicants
Projects
None yet
Development

No branches or pull requests

3 participants