GithubHelp home page GithubHelp logo

runt18 / search-repository-swift Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maximmironov/search-repository-swift

0.0 2.0 0.0 425 KB

Github mirror of "search/repository-swift" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing

License: Apache License 2.0

Java 100.00%

search-repository-swift's Introduction

Swift repository plugin for Elasticsearch

In order to install the plugin, simply run: bin/plugin -install org.wikimedia.elasticsearch.swift/swift-repository-plugin/<version>.

Swift Plugin elasticsearch Release date
0.4 1.1.0 2014-05-28
0.6 1.3.2 2014-08-20
0.7 1.4.0 2014-11-07
1.6.0 1.6.0 2015-06-09
1.7.0 1.7.0 2015-07-20

Only the versions in the table above should be used. The in-between releases were buggy and are not recommended.

Create Repository

    $ curl -XPUT 'http://localhost:9200/_snapshot/my_backup' -d '{
        "type": "swift",
        "settings": {
            "swift_url": "http://localhost:8080/auth/v1.0/",
            "swift_container": "my-container",
            "swift_username": "myuser",
            "swift_password": "mypass!"
        }
    }'

See Snapshot And Restore for more information

Settings

Setting Description
swift_container Swift container name. Mandatory
swift_url Swift auth url. Mandatory
swift_authmethod Swift auth method, one of "KEYSTONE" "TEMPAUTH" or "" for basic auth
swift_password Swift password
swift_tenant Swift tenant name, only used with keystone auth
swift_username Swift username
chunk_size Maximum size for individual objects in the snapshot. Defaults to 5gb as that's the Swift default
compress Turns on compression of the snapshot files. Defaults to false as it tends to break with Swift
max_restore_bytes_per_sec Throttles per node restore rate. Defaults to 20mb per second.
max_snapshot_bytes_per_sec Throttles per node snapshot rate. Defaults to 20mb per second.

To debug in Eclipse

Since Swift has logging dependencies you have to be careful about debugging in Eclipse.

  1. Import this project into Eclipse using the maven connector. Do no import the main Elasticsearch code.
  2. Create a new java application debug configuration and set it to run ElasticsearchF.
  3. Go to the Classpath tab
  4. Click on Maven Dependiences
  5. Click on Advanced
  6. Click Add Folder
  7. Click ok
  8. Expand the tree to find /src/test/resources
  9. Click ok
  10. Click debug

search-repository-swift's People

Contributors

he667 avatar

Watchers

 avatar  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.