测试和生产环境的最佳实践 [英] Best practice for test and production environments

查看:55
本文介绍了测试和生产环境的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我工作的公司,我们有两种环境:测试环境和生产环境.由于成本原因,我们目前没有启动新环境.

In the company where I work, we have 2 environments: test and production. We are not currently starting a new environment, because of cost.

这是我们遵循的程序:业务提出功能请求,开发使其发生并将其部署在测试环境中.然后业务对其进行测试(UAT),如果没问题,该功能将包含在下一个生产部署中.

Here is the procedure we follow: business makes a feature request, development makes it happen and deploys it on test environment. Then business tests it (UAT), and if it's OK, the feature will be included into next production deployment.

问题是测试数据库的最佳实践.开发人员将测试环境视为他们的游乐场,有时他们将 DB 重置为初始状态以进行测试.另一方面,业务人员认为测试数据库必须是稳定的,不应重置.我们想解决这个问题,并决定测试环境应该属于开发团队还是业务团队.(开发人员不希望企业将他们的鼻子放在测试环境中,但业务团队正在为服务器付费.)

The problem is best practices for test DB. Developers treat test environment as their playground, and sometimes they reset the DB to initial state for testing purposes. On the other hand, business people think that test DB must be stable, and should not be reset. We would like to resolve this issue, and decide if test environment should belong to development team or business team. (Developers don't want business to put their nose in test env., but business team is paying for servers.)

关于环境的最佳实践是什么?你能推荐一篇关于这个的文章吗?

What is the best practice about environments? Can you recommend an article about this?

推荐答案

我们公司也有两个数据库,一个测试数据库和一个生产数据库.测试数据库主要用于开发人员测试,但有时也用于业务测试.该数据库每天使用生产数据库的实际副本进行刷新.所以这个数据库既可以是一个游乐场,也可以是一个严肃的测试数据库.但是第三,开发,数据库是最好的选择.我们有一个,但它现在坏了.但是,当您获得其中之一时,您应该确保它经常刷新.当开发者把它当作游乐场时,它会偏离生产环境,它的数据既陈旧又腐败.因此,开发人员将无法自己进行良好的测试.因此,请确保定期刷新此数据库(也可能每天刷新一次,或者至少每周刷新一次).

At our company there are two databases too, a test and a production database. The test database is mainly used for testing by developers but sometimes for business tests too. This database is refreshed daily using an actual copy of the production database. So this database can be both a playground and a serious testing database. But a third, development, database is the best option. We had one, but it is broken at the moment. But when you get one of those, you should make sure it is refreshed often enough. When developers use it as a playground, it will stray away from the production environment, and its data will be both old and currupt. Because of this, developers won't be able to test well themselves. So make sure you refresh this database periodically (maybe daily too, or at least once a week).

这篇关于测试和生产环境的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆