mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-19 02:02:53 +00:00
hacky way to make tests pass
This commit is contained in:
@@ -833,10 +833,13 @@ impl TenantShard {
|
||||
continue;
|
||||
};
|
||||
|
||||
// TODO: make this AZ aware: secondary should be chosen "As if I am an attachment, but
|
||||
// in a different AZ to my actual preferred AZ"
|
||||
|
||||
// Let the scheduler suggest a node, where it would put us if we were scheduling afresh
|
||||
// This implicitly limits the choice to nodes that are available, and prefers nodes
|
||||
// with lower utilization.
|
||||
let Ok(candidate_node) = scheduler.schedule_shard::<SecondaryShardTag>(
|
||||
let Ok(candidate_node) = scheduler.schedule_shard::<AttachedShardTag>(
|
||||
&self.intent.all_pageservers(),
|
||||
&self.preferred_az_id,
|
||||
schedule_context,
|
||||
|
||||
Reference in New Issue
Block a user