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

What is meant by "properly handles writing cached data to persistent disks when needed" #39740

Closed
FreekPaans opened this issue Sep 29, 2019 — with docs.microsoft.com · 11 comments

Comments

Copy link

The docs say: "Configure host-cache as ReadWrite only if your application properly handles writing cached data to persistent disks when needed.". But it's unclear what properly means in this context. The example for SQL Server: "For example, SQL Server handles writing cached data to the persistent storage disks on its own. Using ReadWrite cache with an application that does not handle persisting the required data can lead to data loss, if the VM crashes.", doesn't make things much clearer: can we enable it for SQL Server or not?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@mimckitt
Copy link
Contributor

Thanks for the feedback! We are currently investigating and will update you shortly.

@mimckitt
Copy link
Contributor

Yes you can enable it for SQL server. SQL is able to understand and properly write the cached data to persistent storage. This is built into the design of SQL. However if you are running a non SQL application, that ability may not be built into your application and in turn could result in data loss if the VM crashes.

So this statement is simply saying, you can enable read/write caching on data disks associated with a SQL application but for non SQL apps you might hit issues unless your app is configured properly.

@FreekPaans
Copy link
Author

FreekPaans commented Oct 1, 2019 via email

@mimckitt
Copy link
Contributor

mimckitt commented Oct 1, 2019

The doc is focused around SQL so I would assume we don't want to add extra information around this. However I will assign to the content authors to review.

@FreekPaans
Copy link
Author

FreekPaans commented Oct 1, 2019 via email

@mimckitt
Copy link
Contributor

mimckitt commented Oct 1, 2019

image

@mimckitt
Copy link
Contributor

mimckitt commented Oct 1, 2019

But I wouldn't disagree. Likely should include more info or avoid just using SQL as an example throughout the whole thing

@FreekPaans
Copy link
Author

FreekPaans commented Oct 1, 2019 via email

@mimckitt
Copy link
Contributor

#assign: @MicahMcKittrick-MSFT

@mimckitt mimckitt removed their assignment Jan 11, 2020
@mimckitt
Copy link
Contributor

mimckitt commented Oct 9, 2020

We are currently cleaning up old issues and closing out items that are greater than 90 days old. If an issue is still present, please open a new feedback item on the document so we can prioritize correctly.

#please-close

@slav
Copy link

slav commented Apr 2, 2021

In case anyone is looking at this, it seems you need to use FILE_FLAG_WRITE_THROUGH flag when doing writes: https://azure.microsoft.com/en-us/blog/data-series-exploring-windows-azure-drives-disks-and-images/

The article states that the write cache is only in memory.

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

No branches or pull requests

6 participants