Skip to content

Conversation

@Spground
Copy link
Collaborator

@Spground Spground commented Jan 15, 2026

Summary

  • What is changing and why?

Opt pool controller perf by avoid write conflicts.

Testing

  • Not run (explain why)
  • Unit tests
  • Integration tests
  • e2e / manual verification

Breaking Changes

  • None
  • Yes (describe impact and migration path)

Checklist

  • Linked Issue or clearly described motivation
  • Added/updated docs (if needed)
  • Added/updated tests (if needed)
  • Security impact considered
  • Backward compatibility considered

@Spground Spground force-pushed the feature/public-opt-pool-sche-perf branch from 71c7ec3 to 1873e4d Compare January 15, 2026 13:04
@jwx0925
Copy link
Collaborator

jwx0925 commented Jan 16, 2026

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1873e4d2e3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +82 to +83
body = self.create_pool_manifest(self.total_bsb_count * self.replicas_per_bsb)
self.custom_api.create_namespaced_custom_object(GROUP, VERSION, NAMESPACE, POOL_PLURAL, body)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor --pool-size instead of hardcoded size

The pool size CLI option is ignored: setup_pool always builds the Pool manifest using self.total_bsb_count * self.replicas_per_bsb, so passing --pool-size has no effect on the created pool capacity. This can invalidate perf results when callers expect a larger/smaller pool; the script should use the user-supplied pool size (or remove the flag).

Useful? React with 👍 / 👎.

Comment on lines +126 to +128
await asyncio.sleep(0.5)
if time.time() - start_polling > 120: # 2 minutes timeout
print(f"⏰ Timeout waiting for {name}")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use --timeout instead of fixed 120s

The --timeout argument is parsed and printed but never applied; allocation polling always stops after a hardcoded 120s. This means users cannot extend or shorten the timeout for slow/fast clusters, which can skew success rates or make runs unexpectedly long.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants