Giter Site home page Giter Site logo

clustering_manager's Introduction

Clustering-Manager

A basic GUI for local clustering task management. Using the clustering optimization platform for easily parameter selection, progress tracking, and delivering results. The user-interface generate the demand queue and the manager read the tasks and control the data clustering by demand.

Requirements

Install

Configure environment variables, install the clustering algorithm, generate the basic server, and set the linux service:

APP.CONFIG

Initial parameters header configurations.

  • Create the input path and set the clustering input location.

    Receives the user data and parameters:

    File app.py : app.config['UPLOAD_LOCATION'] = "/var/www/html/clustering/input/"

    File control_clstropt.py : LOCATION_QUEUE = "/var/www/html/clustering/"

  • Set queue location:

    File app.py : app.config['CTRL_LOCATION'] = "/var/www/html/clustering/"

    File control_clstropt.py : LOCATION_QUEUE = "/var/www/html/clustering/""

  • Create the input path and set the clustering output location.

    Return the cluster information, including the cluster ids and report:

    File app.py : app.config['DOWNLOAD_LOCATION'] = "/var/www/html/clustering/output/"

    File control_clstropt.py : "/var/www/html/clustering/output/"

    Set IP access on output public folder.

    File app.py : app.config['WEB_ENV'] = "http://"+HOST_IP+"/clustering/output/"

  • Python prefix called for clustering:

    File control_clstropt.py : PYTHON_MODE = "python3"

  • Process identifier for Cron check:

    File control_clstropt.py : PIDFILE = "/tmp/control_clstropt.pid"

  • The clustering optimization absolute path:

    File control_clstropt.py : CLSTR_APP = "/home/USER/clustering/main_clustering.py"

Clustering

Install the clustering optimization at the control_clstropt.py absolute path. Insert the file control_clstropt.py inside these path.

Server

Install Flask and Waitress. Configure app.py settings on serve() function at app.py.

Generate the linux service

Create /etc/init/clstropt and replace /path/to/ for app.py location:

# clstropt.conf
start on filesystem
exec python3 /path/to/app.py

Create /etc/init.d/clstropt file

# clstropt.conf
start on filesystem
exec python3 /path/to/app.py

Manage the GUI service activity using:

sudo service clstropt start

sudo service clstropt stop

Cron

Set time crontab cycles to execute the manager. The process remove overlap in a built-in function using ps command.

10 * * * * python3 /path/to/control_clstropt.py > /path/to/error.log

clustering_manager's People

Contributors

marcosspalenza avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.