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

Deploy D1 to Production #2055

Closed
8 tasks done
analogrelay opened this issue Apr 16, 2014 · 5 comments
Closed
8 tasks done

Deploy D1 to Production #2055

analogrelay opened this issue Apr 16, 2014 · 5 comments
Milestone

Comments

@analogrelay
Copy link
Contributor

Deployment D1

Status: Deployed

Focus: Improve search relevance

Services Deployed:

Bugs Fixed: https://github.com/NuGet/NuGetGallery/issues?milestone=49&page=1&state=closed

Deployment Process

  • Promote Work Service to target environment using Octopus
  • Wait for the Work Service deployment to complete, it will take 30-40mins.
  • From nuops, with the target environment selected, run:
nucmd work invoke -j RebuildSearchIndex -p "{'StorageContainerName':'ng-search-secondary'}"

NOTE The index will take a while to build, but this command will return immediately. You can continue with deployment, but the search service will only be searching the portions of the index which have finished building. The NumDocs field at the /search/diag endpoint will tell you how many documents the Search Service is searching. When it reaches about 250,000, the whole index should be ready.

  • Also:
nucmd work invoke -j GenerateSearchRankings -p "{'DestinationContainerName':'ng-search-secondary'}"
  • And:
nucmd work invoke -j GenerateDownloadCountReport -p "{'DestinationContainerName':'ng-search-secondary'}"
  • Schedule the GenerateSearchRankings, GenerateDownloadCountReport and UpdateSearchIndex jobs to run against the new search container:
nucmd azure login
nucmd scheduler newjob -dc 0 -sing -j UpdateSearchIndex -i UpdateSearchIndex_Secondary -f Minute -in  1 -p "{'StorageContainerName':'ng-search-secondary'}"
nucmd scheduler newjob -dc 0 -sing -j GenerateSearchRankings -i GenerateSearchRankings_Secondary -f Day -in  1 -p "{'DestinationContainerName':'ng-search-secondary'}"
nucmd scheduler newjob -dc 0 -sing -j GenerateDownloadCountReport -i GenerateDownloadCountReport_Secondary -f Minute -in  5 -p "{'DestinationContainerName':'ng-search-secondary'}"
  • Update Search CSCFG to use "ng-search-secondary" (Make sure to PUSH this change to the deployment repository!)
  • Promote Search Service to target environment using Octopus

Pull Requests/Interesting Commits

@analogrelay analogrelay added this to the Deployments milestone Apr 16, 2014
@analogrelay analogrelay reopened this Apr 16, 2014
@danliu
Copy link
Contributor

danliu commented Apr 16, 2014

For this issue #2047, what fixes were made exactly?

@analogrelay
Copy link
Contributor Author

It's a dupe, I closed it and referenced the dupe

@danliu
Copy link
Contributor

danliu commented Apr 16, 2014

How often does the job run? After the fix, shall I expect the download numbers to be the same or diff by a small number? What about the download numbers in the statistic pages.

@analogrelay
Copy link
Contributor Author

I'll schedule the job to run every 5 minutes for now, we can see how that goes.

@analogrelay
Copy link
Contributor Author

@danliu Btw, you can go ahead and consider the list of issues resolved complete, I'm basically just doing final testing in dev now.

@analogrelay analogrelay modified the milestones: D1, Deployments Apr 17, 2014
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

No branches or pull requests

2 participants