问题标签 [downtime]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
29282 浏览

elasticsearch - 有没有更聪明的方法来重新索引弹性搜索?

我问是因为我们的搜索在我们解决问题时处于不断变化的状态,但是每次我们对索引进行更改(更改标记器或过滤器,或分片/副本的数量)时,我们都必须删除整个索引并将我们所有的 Rails 模型重新索引到 Elasticsearch 中……这意味着我们必须考虑停机时间来重新索引所有记录。

有没有我不知道的更聪明的方法来做到这一点?

0 投票
2 回答
271 浏览

c# - How to lock down a web application for maintenance without loss of unsaved work?

I have a large web application in ASP .NET (not that the technology matters here) that does not currently have a way to be locked down for maintenance without current users losing their work. Since I have not implemented something like this before, I would like to hear about some of the standard precautions and steps developers take for such an operation.

Here are some of the questions that I can think of:

  • Should each page redirect to a "Site down for maintenance" page or is there a more central way to prevent interaction?
  • How to centralize a scheduled maintenance such that user operations lock down before the site is locked down. Thus preventing loss of unsaved work.

The application is data-driven and implements transaction scopes at the business layer. It does not use load balancing or replication. I may be wrong, but it does not 'feel right' to have the BLL handle this. Any suggestions or links to articles would be appreciated.

0 投票
2 回答
82 浏览

html - Stackoverflow 等大型网站如何不间断地更改样式和其他文件?

我昨天注意到这个网站顶部有一个新的导航栏。它还在导航栏上添加了更多功能,这些功能肯定需要服务器端更改或至少更新的查询。

是的,它作为变量附加到 css,以便每次访问都会加载一个新副本。我想知道他们如何完成更改,即在不停机的情况下交换文件?

也许后面还有很多其他的事情,任何洞察力都会很好。谢谢。

0 投票
0 回答
237 浏览

ruby-on-rails - 如何跟踪 Newrelic 报告的停机时间

我收到带有不同故障消息的 Web 应用程序的停机警报。这些都是 2-3 分钟的停机时间。这种停机时间是一天中随机的 2-3 次。

失败消息

  • 解析 HTTP 响应时出现问题,没有更多详细信息。
  • 连接错误(连接被拒绝)
  • 30 秒后超时
  • 404状态

申请信息

我如何追踪这些停机时间的问题,以便我可以找到问题所在

0 投票
1 回答
32 浏览

java - Android - application depending on own api - server offline

I don't know if this is the right place to post but I am completly lost.

My application, that is relying on an api from my own vps(that is down for 4 hours now), is not working anymore.

I have contacted my host, but they aren t moving fast and I have no backup of my vps content.

Many users are bad reviewing my application and I'm starting to be crazy about it.

Is there any solution to avoid bad reviewing you could advice me?

Thank you

0 投票
1 回答
68 浏览

asp.net - 多台服务器可以解决停机问题吗?

我尝试了许多托管服务,但它们都有停机问题。现在,我很清楚停机是不可避免的并且最终会发生,但是我一直在徘徊,如果一个网站可以托管在多个主机中来解决这个问题。例如,我在一家托管公司拥有我的网站,如果由于某种原因我的网站在该网站中出现故障,我的域名可以重定向到替代托管公司。

那可能吗?如果是这样,怎么办?

我会非常感谢任何帮助。

0 投票
1 回答
25 浏览

asp.net - 如何使用 IIS 7 重定向到另一个网站上的另一个页面?

我有一个被许多用户使用的网站,当我们尝试更新一些新的更改时,它总是会有一些停机时间。现在我想显示一个使用 IIS 设置托管在其他服务器或域上的页面,是否可能。我知道我可以通过使用 app_offline.htm 页面来做到这一点,但我不想使用手动过程。iis 上是否有任何设置,当网站遭受停机时,我可以将网站重定向到该页面。

0 投票
1 回答
205 浏览

python - Openshift 设备上的 PostgreSQL 高可用性

几个月来,我一直在测试 Openshift Online 平台(使用免费的 3 档选项)。我设置了几个 python 应用程序以及非常基本的 python 应用程序(仅使用 Openshift python 模板)和外部监控,这也使应用程序保持活动状态(=非空闲)。

我的发现是应用程序每 cca 14 天重新启动一次。并且基本上不适用于 cca 5-20 分钟。为了使停机时间为 0,建议使用 HA 可扩展设置。

这通常被声明为具有 HA 代理设置的应用程序服务器(例如 python)的 2+ 齿轮 + 数据库的 1 齿轮(在我的情况下为 PostgreSQL)。

我想知道数据库设备是否不会像在非扩展应用程序中那样不时重新启动?

0 投票
1 回答
39 浏览

php - Twitter API 的问题

好的,我已经使用PHP通过 API 使用twitter登录了一段时间。但是今天我在建立连接方面除了问题什么都没有!

Twitter API 有什么变化???

0 投票
1 回答
471 浏览

amazon-web-services - 不遵守 Elastic Beanstalk 滚动更新超时

我正在尝试在 AWS 弹性 beantalk 上实现零停机时间重新部署。

我的环境中基本上有两个实例,再加上 Jenkins for CI(使用 Tomcat)。我想要实现的是每次我从 Jenkins 触发重新部署时,只重新部署一个环境实例,然后有一个超时以允许新实例加载应用程序,然后重新部署第二个实例。

为了实现该超时,我设置了“暂停时间”和“命令超时”,但不幸的是,如果不遵守此限制。第一个实例被重新部署,但大约 1 分钟后,第二个实例被重新部署,无论我设置的超时值如何。有人存档这个吗?关于如何实现它的任何见解?