2014-10-23 11 views
7

मैंने पहचाना है कि हमें जल्द ही कुछ बिंदु (प्रीमियम से प्रीमियम) के रूप में अगली सेवा स्तर में स्केल करने की आवश्यकता हो सकती है।सेवा स्तर या प्रदर्शन स्तर और डेटाबेस डाउनटाइम बदलना

रुचि रखने वाले अन्य लोगों के लिए, this article आपके SQL डेटाबेस का विश्लेषण करने के लिए महान दिशानिर्देश प्रदान करता है।

मेरा प्रश्न: क्या कोई अलग सेवा स्तर या प्रदर्शन स्तर पर स्केल करते समय कोई डाउनटाइम है?

उत्तर

4

टायर बदलने पर कोई डाउनटाइम नहीं है, मैंने इसे कुछ बार किया है। परिवर्तन तत्काल नहीं है, हालांकि इसमें कम से कम 5 मिनट लगते हैं लेकिन उस समय के दौरान यह सामान्य के रूप में काम करेगा।

2

टीआईईआर बदलते समय कोई डाउनटाइम नहीं है लेकिन बिलिंग मॉडल बदलते समय डाउनटाइम है। आपको सचमुच अपने डेटाबेस का बैकअप लेना होगा, नए बिलिंग मॉडल सर्वर में नए डेटाबेस को स्पिन करना होगा, और उन्हें पुनर्स्थापित करना होगा। फिर आपको ऐप्स या वेबसाइटों में अपने सभी डेटाबेस संदर्भों को बदलना होगा। यदि आप किसी बिलिंग स्तर से स्तर बदलना चाहते हैं जो अब समर्थित नहीं है तो आपको पहले नए बिलिंग मॉडल में माइग्रेट करने की आवश्यकता होगी। हमने इसे कठिन तरीके से सीखा। माइक्रोसॉफ्ट इसे आसान नहीं बनाता है - यह पुशबटन ऑपरेशन नहीं है।

+0

मैं वेब (सेवानिवृत्त) से S0 में बदल गया और मैंने कोई डाउनटाइम नहीं देखा। यहां तक ​​कि यह भी कहता है कि कोई डाउनटाइम नहीं है: http://azure.microsoft.com/blog/2014/07/08/azure-update-sql-database-easy-upgrade-to-new-service-tiers-performance-improvements -pitr के लिए बुनियादी और स्वचालित निर्यात के लिए सभी सेवा-स्तरों / – jsgoupil

5

"डाउनटाइम" की आपकी परिभाषा पर निर्भर करता है। मैंने कई बार प्रदर्शन स्तर बदल दिए हैं। मानक से प्रीमियम तक जाकर हमने कई त्रुटियों का अनुभव किया। यहाँ कुछ नमूने हैं:

System.Data.SqlClient.SqlException (0x80131904): A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) ---> System.ComponentModel.Win32Exception (0x80004005): An existing connection was forcibly closed by the remote host.

System.Data.SqlClient.SqlException (0x80131904): The ALTER DATABASE command is in process. Please wait at least five minutes before logging into database '...', in order for the command to complete. Some system catalogs may be out of date until the command completes. If you have altered the database name, use the NEW database name for future activity.

System.Data.SqlClient.SqlException (0x80131904): The service has encountered an error processing your request. Please try again. Error code 40174. A severe error occurred on the current command. The results, if any, should be discarded.

System.Data.DataException: Unable to commit the transaction. The underlying connection is not open or has not been initialized.

मेरी सलाह घंटे या रखरखाव अवधि के दौरान यदि संभव हो तो प्रदर्शन के स्तर को बंद को बदलने के लिए है।

4

उपरोक्त के रूप में, यह डाउनटाइम की आपकी परिभाषा पर निर्भर करता है। लेन-देन वापस ले जाने पर स्तरीय स्विच के रूप में एक संक्षिप्त अवधि होती है।

से

'ऊपर स्केलिंग या आकार छोटा करने का ...' इस पेज के अनुभाग: https://docs.microsoft.com/en-us/azure/sql-database/sql-database-service-tiers

Note that changing the service tier and/or performance level of a database creates a replica of the original database at the new performance level, and then switches connections over to the replica. No data is lost during this process but during the brief moment when we switch over to the replica, connections to the database are disabled, so some transactions in flight may be rolled back. This window varies, but is on average under 4 seconds, and in more than 99% of cases is less than 30 seconds. Very infrequently, especially if there are large numbers of transactions in flight at the moment connections are disabled, this window may be longer.

के बाद से "में उड़ान लेन-देन" आम तौर पर जब एक कनेक्शन टूट गया है चलाने वाले एक सौदे के लिए संदर्भित करता है, यह ऐसा लगता है कि या तो कनेक्शन मध्य लेनदेन को तोड़ दिया जा सकता है, या, कई कनेक्शनों पर चल रहे लेनदेन विफल हो सकते हैं और स्विच के दौरान कनेक्शन को अस्वीकार कर दिया जाता है, तो वापस लुढ़काया जा सकता है। यदि उत्तरार्द्ध, तो स्विच के दौरान अक्सर सरल लेनदेन प्रभावित नहीं हो सकते हैं। यदि पूर्व, तो व्यस्त डेटाबेस लगभग कुछ प्रभाव देखेंगे।

संबंधित मुद्दे