Skip to content

Add-DbaAgDatabase add option to not wait for seeding #9857

@TiborKaraszi

Description

@TiborKaraszi

Summarize Functionality

It would be valuable if we could add a database to an AG, but not have to wait for that operation to be completed. I.e., a command-line switch for that option.

Is there a command that is similiar or close to what you are looking for?

No

Technical Details

The SQL command in the end is ALTER AVAILABILITY GROUP .. ADD DATABASE ... is immediate. It doesn't wait for the database to be seeded onto the replicas. We have deployments where we have to wait sometimes an hour for the deploy to finish, just waiting for the seeding to be completed. It would be a win for us of the could finish such deployment and start using the environment, even though the seeding is still going on (in the background). (Loking at the source code: I don't know if it is the loop in step 3/4 that should be bypassed or possibly step 5.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuretriage requiredNew issue that has not been reviewed by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions