Redundant networking¶ You should conduct a high availability risk analysis to determine whether to use redundant switches such as Top of Rack (ToR) switches. In most cases, it is much more economical to use single switches with a small pool of spare switches to replace failed units than it is to outfit an entire data center with redundant switches. Applications should tolerate rack level outages without affecting normal operations since network and compute resources are easily provisioned and plentiful. Research indicates the mean time between failures (MTBF) on switches is between 100,000 and 200,000 hours. This number is dependent on the ambient temperature of the switch in the data center. When properly cooled and maintained, this translates to between 11 and 22 years before failure. Even in the worst case of poor ventilation and high ambient temperatures in the data center, the MTBF is still 2-3 years.
时间: 2024-02-14 17:33:25 浏览: 23
冗余网络
您应该进行高可用性风险分析,以确定是否使用冗余交换机,例如顶级交换机(ToR交换机)。在大多数情况下,与使用冗余交换机来配置整个数据中心相比,使用单个交换机并配备一小批备用交换机以替换故障单元的成本要低得多。由于网络和计算资源易于配置且丰富,应用程序应该能够容忍机架级别的故障,而不会影响正常运营。
研究表明,交换机的平均故障间隔时间(MTBF)在10万至20万小时之间。这个数字取决于数据中心中交换机的环境温度。在正确冷却和维护的情况下,这意味着在故障之前可以使用11到22年。即使在数据中心通风不良和环境温度较高的最糟糕情况下,MTBF仍为2-3年。
相关问题
Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: "/info".
这个错误通常出现在使用路由导航时,尝试导航到当前已经处于活动状态的页面。这可能是由于在同一个页面上多次点击导航按钮或重复调用 `router.push()` 或 `router.replace()` 方法引起的。
要解决这个问题,你可以在导航之前检查当前的路由路径是否与即将导航到的路径相同。你可以使用 `router.currentRoute` 对象来获取当前的路由信息,然后将其与目标路径进行比较。如果它们相同,你可以选择不进行导航,或者根据你的需求执行其他操作。
另外,你还可以尝试使用 `router.beforeEach` 导航守卫来拦截重复导航。在该导航守卫中,你可以检查即将导航到的路由是否与当前路由相同,如果是,则取消导航。
希望这些提示能够帮助你解决这个问题!如果你还有其他问题,请随时提问。
vue2中的项目中ncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: "/add".如何解决
这个错误通常发生在你重复执行了同一路由跳转的操作时。例如,你在当前路由下点击了一个链接,但是该链接的目标路由与当前路由相同,就会触发这个错误。
解决这个问题的方法有两种:
1. 使用catch方法捕获错误并处理
在你执行路由跳转的代码后,添加一个catch方法,捕获NavigationDuplicated错误,并在捕获到错误时,执行一些处理操作,例如提示用户或者跳转到其他路由。
示例代码:
```
this.$router.push('/add').catch(err => {
if (err.name === 'NavigationDuplicated') {
console.log('路由跳转重复')
} else {
console.log(err)
}
})
```
2. 使用router.beforeEach方法拦截路由跳转
在router/index.js文件中,使用router.beforeEach方法拦截路由跳转,判断即将跳转的路由是否与当前路由相同,如果相同则阻止路由跳转,并执行一些处理操作。
示例代码:
```
router.beforeEach((to, from, next) => {
if (to.path === from.path) {
console.log('路由跳转重复')
} else {
next()
}
})
```
以上两种方法都可以解决NavigationDuplicated错误,具体使用哪种方法,取决于你的业务需求和个人喜好。