# Unstructured-Autotuning **Repository Path**: HITMassiveData/Unstructured-Autotuning ## Basic Information - **Project Name**: Unstructured-Autotuning - **Description**: 调优工具-非结构化数据库 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-09-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 非结构化数据库优化工具 ### 介绍 本工具主要面向武汉大学研制的非结构化数据管理系统进行性能优化。 本工具主要面向特定工作负载,面向非结构化数据库中存贮元信息的postgresql数据库进行参数调优,并根据数据访问模式自动建立索引。 ### 环境准备 1.操作系统:ubuntu 16.04 2.postgresql 10.x (作为非结构化数据库的一部分) 3.python 2.7.0 并安装以下包: numpy 1.13.1 scikit-learn 0.18.2 scipy 0.19.1 sycopg2-binary ### 使用说明 1. 首先用户应正常安装非结构化数据库,并使用一段时间。 2. 将本公工具全部源代码拷贝到本地 3. 执行 ```Shell python2.7 ./tuneAtLocal.py [maxAutoIndex minAutoIndex indexCoverRate] ``` - maxAutoIndex : 自动建立索引的数量上限 - minAutoIndex : 自动建立索引的数量下限 - indexCoverRate: 自动索引能够覆盖的数据库列的数量与所有数据库列数量之比 等待程序运行结束即可,此时参数已经在数据库上被持久化地更改了 ### 配置文件 [配置文件](https://gitee.com/HITMassiveData/Unstructured-Autotuning/blob/master/settings.py)中可以调整关于postgresql数据库相关配置信息 [tuneAtLocal.py](https://gitee.com/HITMassiveData/Unstructured-Autotuning/blob/master/tuneAtLocal.py) 里面可以调整maxAutoIndex 、minAutoIndex 与indexCoverRate 的默认值