简介
备注:
本指南假定仅存在一种环境。
在最终用户访问环境和该环境上处于活动状态的版本之前,需要获取数据(例如外部数据库查询),并需要对计算进行缓存。单次的这种缓存生成的结果称为“实例”。
缓存可以手动或自动生成。在“超级管理员已发布数据”选项卡中可以看到这些缓存生成的结果。
手动生成缓存
要创建数据实例,您必须生成让最终用户访问应用程序所需的缓存。
请按照以下步骤为您的版本创建缓存。
Step | Action |
---|---|
1 | Go to the Superadmin Released data tab. |
2 | Click on Generate cache now. |
3 | Click on GENERATE CACHE. |
4 | When the dialog shows Finished click on CLOSE. |
已添加一个新行,其中包含您的模块名称,以及一列针对以当前日期命名的数据运行的列,此列中显示 1/1,表示已成功生成实例。
如果单击箭头展开行,则会在行中看到您的组织名称和一些图标,这表明数据生成已成功完成,并且此数据实例现已处于活动状态。请参见下图。
自动生成缓存
缓存生成也可以定期(例如每天)完成,而不是手动完成。这在从外部数据库查询数据时非常有用,因为它将使更新的数据自动提供给最终用户。
要进行此设置,需要管理员访问服务器。
可以为活动版本中的特定模块生成缓存。在批处理文件中使用 app=MODULECODE
,而不是 app=*
(请参阅下文)。如果使用 app=*
,则为活动版本中的所有模块生成缓存。
也可以为特定组织生成缓存。使用 o=[org]
为特定组织生成缓存。如果使用 o=*
,则按顺序为所有组织生成缓存。
备注:
这仅适用于不使用连接器生成输入数据的应用程序。
请按照以下步骤安排任务,以生成缓存。
Step | Action |
---|---|
1 | Open the directory PLATFORMDIR . |
2 | Create an empty batch file, e.g.: generatecaches.bat . |
3 | Edit this batch file, and use the following line as content:call builds/processgold.bat -DataServer -ccdb app=* o=org refreshmvncaches=both This batch file will generate caches for all applications. |
4 | Schedule a task in Windows to call this batch file. |
安排的任务将定期运行,以便为该 UiPath Process Mining的 安装的所有项目生成缓存。
备注:
It is recommended to run this task outside of office hours to have as little impact as possible on your users.
解释结果
已发布的数据视图包含为每个模块生成的数据实例。
以下是指示实例状态的图标说明。

Icon | Description |
---|---|
A | The currently active data instance. |
B | A valid data instance. |
C | A valid data instance, but with warnings. |
D | A failed data instance. |
E | A valid, but blocked data instance. |
F | A failed but marked as fixed data instance. |
创建新数据实例时,如果有效,它将自动设为“活动”。但是,如果失败,则最后一个有效实例将保持活动状态。
查看数据实例生成的详细日志
有时,有必要查看有关数据实例生成的更详细的日志。例如,当发生错误或警告时,您想要查看更多详细信息。
请按照以下步骤查看数据实例生成的日志。
Step | Action |
---|---|
1 | Go to the Superadmin Released data tab. |
2 | Right click on the data instance you want to view the log of and select Show log. (optional: Select the modules to use, see ‘the Select Instances dialog’) |
3 | Click on OK. |
系统将显示数据实例生成的日志。
打开实例
请按照以下步骤查看特定的数据实例。
Step | Action |
---|---|
1 | Go to the Superadmin Released data tab. |
2 | Right click on the data instance you want to open and select Open.... |
3 | Click on OPEN. |
系统将使用您选择的数据实例打开该项目。
覆盖实例状态
阻止数据实例
有时,被视为有效的实例仍可能包含问题。在这种情况下,可以阻止该实例,以确保将其停用,这样最终用户将无法再访问它。
请按照以下步骤回滚活动缓存。
Step | Action |
---|---|
1 | Go to the Superadmin Released data tab. |
2 | Right click on the data instance on which the issue is detected and select Mark blocked. (optional: Select the modules to use, see ‘the Select Instances dialog’) |
3 | Click on OK. (2x) |
活动数据实例已标记为“已阻止”。当前活动的数据实例是最后一个有效的数据实例。
将数据实例标记为固定
当数据实例被阻止或出现故障的问题实际已解决时,可以将其标记为已修复并重新激活。
请按照以下步骤将数据实例标记为固定。
Step | Action |
---|---|
1 | Go to the Superadmin Released data tab. |
2 | Right click on the data instance on which have been fixed and select Mark fixed. (optional: Select the modules to use, see ‘the Select Instances dialog’) |
3 | Click on OK. (2x) |
已将活动数据实例标记为有效,并将当前活动数据实例设置为最新的有效数据实例。
“选择实例”对话框
在“已发布数据”选项卡中使用上下文菜单(右键单击实例)时,每个选项都会打开一个名为“选择实例”的对话框。请参见下图。
在此对话框中,您可以选择要应用选定操作的模块。有些操作(如“打开”)需要选择单个实例,而其他操作则允许选择多个实例,如“显示日志”。根据您在网格中右击的位置,系统最初将在“选择实例”对话框中选择不同的模块。
请按照以下步骤为正在执行的当前操作选择特定模块。
Step | Action |
---|---|
1 | Go to the Superadmin Released data tab. |
2 | Right click on the data instance and select any of the options. |
3 | Click on SELECT MODULES. |
4 | Select the modules you want to use. |
5 | Click on OK. |
系统将在“选择实例”对话框中指示所选的模块。
回滚设置
系统将在创建新实例后自动删除较旧的实例。默认情况下,只有最后一个出错的数据实例和最后两个有效的数据实例将保持可用状态。
可以将这些数量增加到最合适的数量。此外,在创建有效实例时,系统将删除超过一周的所有无效实例。
请按照以下步骤调整回滚设置。
Step | Action |
---|---|
1 | Go to the Superadmin Settings tab. |
2 | In the Server Settings text field, set KeepInstancesError to the number of error instances you wish to keep (e.g. “KeepInstancesError”: 2 ). |
3 | In the Server Settings text field, set KeepInstancesOk to the number of valid instancesyou wish to keep (e.g. “KeepInstancesOk”: 6 ) |
4 | Click on SAVE. |
保留的有效数据实例和错误实例的数量将更新为所选的设置。下次生成实例时,这些新设置将用于删除旧实例。
自动化失败电子邮件
缓存生成失败时,可能会收到电子邮件。
请按照以下步骤设置自动化失败电子邮件。
Step | Action |
---|---|
1 | Go to the Superadmin Settings tab. |
2 | In the Server Settings text field, set SendMailReportTo to the email you wish toreceive emails on failure. (e.g. "SendMailReportTo": "[email]" ).(Optional) In server settings text field, set SendMailReportId to a string that identifiesyour server. This will be added to the subject line of the email. (e.g. "SendMailReportId": "[id]" ). |
3 | Click on SAVE. |
失败时,系统将向设置为 SendMailReportTo
的电子邮件发送一封电子邮件,主题行为 SendMailReportId
。
为开发者导出数据集
您可以将实例中包含的数据导出为开发数据集。开发者可以使用这些数据集,这样他们讲不需要自己获取数据(例如,通过运行查询)。
请按照以下步骤导出数据集以进行开发。
Step | Action |
---|---|
1 | Go to the Superadmin Released data tab. |
2 | Right click on the data instance you want to export and select Export data to development…. (optional: Select the modules to use, see ‘the Select Instances dialog’) |
3 | Click on OK. |
4 | Enter a name for the exported dataset and click on OK. |
导出的数据集将添加到“开发数据”选项卡中的数据集。
相关信息
For more explanation about multiple environments see: Environments.
3个月前更新