1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 12:45:38 +01:00

86 Commits

Author SHA1 Message Date
Sridhar Seshasayee
830c8c9ff0 Tracing: Generate new endpoints.md with new tracing endpoints.
closes #1368

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
2019-02-12 08:08:00 +05:30
Oshank Kumar
8ef2e187de block volume: added a common function for updating available hosting volume size
- moved hosts parameter from mandatory to optional field in  CreateBlockVolume
   method of BlockProvider interface,since hosts field may not required for
   other block providers like loopback.

 - a common function for updating available hosting volume size will prevent
   from duplicate code

Signed-off-by: Oshank Kumar <okumar@redhat.com>
2019-01-07 19:04:12 +05:30
Hari Gowtham
5f8ec37832 Profiling: to implement go profiling in glusterd2
Changes have been made to enabled them from the config file.
Setting "profiling = true" in config file will enable it.

The bottleneck can be understood by seen the output using
the go tool pprof.

example: go tool pprof http://<ip>:24007/debug/pprof/heap

Signed-off-by: Hari Gowtham hgowtham@redhat.com
2018-12-14 18:46:34 +05:30
Aravinda VK
ee2fb7f89a Normalize the xlator name when stored in Volinfo
Category prefix is optional when setting Volume options. For example
to set replicate.eager-lock, we can pass `replicate.eager-lock` or
`cluster/replicate.eager-lock`. With this PR, always stored with
category prefix.

Also fixed the issue of loosing template variables when xlator default
options and volinfo.Options are loaded(Fixes: #1397)

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-12-13 18:57:09 +05:30
Kaushal M
0a44716619 doc: Add a design document for the transaction framework
This document contains the design for the proposed update to the
transaction framework to make it more reliable and distributed.

Closes #919
2018-12-11 18:50:43 +05:30
rishubhjain
8a52b23d84 Replace brick api 2018-12-07 19:04:19 +05:30
Aravinda VK
f7a3ecf9e1 Generate Client Volfiles on demand
Currently client Volfiles are stored in etcd, but this increases the
consumption of etcd storage space. With this PR, client volfiles are
generated on the fly when mount request comes.

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-12-05 15:22:37 +05:30
Aravinda VK
931b7a2e80 Refactor Device management
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-12-05 11:21:29 +05:30
rishubhjain
3d9707a63a Edit device API 2018-12-05 09:09:14 +05:30
Aravinda VK
6f659ddf94 doc: Geo-replication feature documentation
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-11-29 12:50:10 +05:30
Mohammed Rafi KC
65dafcd708 snapshot: Adding doc for snapshot feature.
This PR add documentation for gluster snapshot

Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2018-11-23 20:09:47 +05:30
Sridhar Seshasayee
8f2972d494 Add section to setup and view traces in glusterd2 development guide.
Add a section in the "Troubleshooting and Debugging" section of the
glusterd2 development guide on how to setup and view traces for quick
debugging.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
2018-11-23 19:56:40 +05:30
vpandey-RH
e6ce7cfd90 Volume profile info API + CLI
Signed-off-by: Vishal Pandey <vpandey@redhat.com>
2018-11-16 18:52:23 +05:30
Aravinda VK
367de6f577 added comments to volgen structs and snapshot related fixes
Brick volfiles generation added during Snapshot activate and
volfiles delete added during snapshot deactivate.

Also fixed client volfile regeneration of snapshot volume during
snapshot restore undo.

Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-11-09 09:11:18 +05:30
Redhat
fe29991a2a Fixed GeorepStatusList response
Signed-off-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
2018-10-11 16:17:50 +05:30
Prashanth Pai
39fc7ab064 doc: Add firewall configuration for ports used by bricks
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-10-04 13:36:52 +05:30
Sidharth Anupkrishnan
3fb301d278 Correction for fixing request and response methods
Correction for fixing the request and response for Methods: GeoReplicationConfigGet and GeoReplicationConfigSet. Fixed the code in plugins/georeplication/init.go. Also regenerated the endpoints.md file.

Signed-off-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
2018-09-14 14:11:29 +05:30
Mohammed Rafi KC
07ffca782b snapshot: Update endpoint structure in rest routes
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2018-09-04 15:34:31 +05:30
Mohammed Rafi KC
13968bea50 snapshot: Make snapshot base url unique
All snapshot urls now start "v1/snapshots". This was done
to keep all rest api as uniform

Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2018-09-03 21:23:37 +05:30
Mohammed Rafi KC
8957cd16cb snapshot: Update enpoints.md file with snapshot rest api
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
2018-09-03 14:43:13 +05:30
Ankush Behl
3c305ffac4 [Fix] REST API Reference link
Signed-off-by: Ankush Behl <cloudbehl@gmail.com>
2018-08-13 20:29:26 +05:30
Rishubh Jain
f305a55cae Updating development guide to use golang version 1.9
With respect to https://github.com/gluster/glusterd2/pull/1123. Using golang 1.9 or higher instead of 1.8. @prashanthpai Please check if we need to make changes in any other documentation.
2018-08-08 16:31:11 +05:30
sankarshan
1b2d9f777d small set of changes around links
minor edits around links and re-phrasing.
2018-08-07 10:32:23 +05:30
Prashanth Pai
59378a4cc9 doc: Document 'retest this please' usage
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-08-06 10:45:00 +05:30
Prashanth Pai
7b07c6542f doc: Add index to documentation
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-08-06 10:45:00 +05:30
Prashanth Pai
ef7280ed7b api: Fix godoc links for plugins
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-26 11:53:42 +05:30
Prashanth Pai
ce87df9969 doc: Update coding conventions with new information
Add some opinions and conventions about:

* logging of txn.* methods
* logging using WithError()
* use of goto statements
* add links pointing to go proverbs and good commit messages

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-26 11:31:56 +05:30
Madhu Rajanna
0b99b82c35 Implemented webhook/test rest API in glusterd2
Implemented wehook/test rest API in glusterd2
which will be called by clients to test webhook
connections between all peers in glusterd2
and webhook URL

added rest client code to call webhook/test API

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-07-13 13:52:59 +05:30
Prashanth Pai
2b38ce420c doc: Document using glusterd2 nightly RPMs
And also remove downloading example which links to an ancient and
outdated release.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-12 14:14:52 +05:30
Prashanth Pai
8004d7409d doc: Fix typo in quick start guide
Change 'nighthly' to 'nightly'

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-12 14:14:52 +05:30
Madhu Rajanna
859ad70fbd updated endpoints.md
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-07-04 12:51:19 +05:30
Prashanth Pai
dd2a8f7507 Remove 'workdir' config in favour of 'localstatedir'
For all practical purposes, in real usage and in tests, the configurable
paths `workdir` and `localstatedir` are set to the same directory which
defaults to `/var/lib/glusterd2` or `/user/local/var/lib/glusterd2`

Unlike glusterd1, glusterd2 does not daemonize itself. The working
directory of the process can be meaningfully set to either current
working directory from where glusterd2 process is started or to
`localstatedir` where glusterd2 stores all its data. We choose the
latter.

This change also reduces ambiguity for users and one less thing to
configure.

Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-07-02 09:44:30 +05:30
Prashanth Pai
0e02c15e82 doc: Illustrate running single functional test
Signed-off-by: Prashanth Pai <ppai@redhat.com>
2018-06-27 18:04:01 +05:30
John Mulligan
27094636ae doc: fix install instructions on gluster centos nightly pkgs
The instructions now note that the packages require epel and refer to yum rather than dnf (this is for centos after all)
2018-06-26 11:54:37 +05:30
Aravinda VK
31f8290f7b Auto generate Volume Name if not specified in Request
Updates: #851
Signed-off-by: Aravinda VK <avishwan@redhat.com>
2018-06-25 16:25:25 +05:30
Madhu Rajanna
044f7f75ce updated endpoint document for events
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-06-25 14:05:17 +05:30
rishubhjain
96a5d9d7b8 Using peerid instead of nodeid 2018-06-25 13:13:47 +05:30
John Mulligan
ea76bf8b98 add merge criteria to development-guide.md
Based on discussion in and closes issue #880
2018-06-25 10:28:18 +05:30
Madhu Rajanna
e8757b81e1 updated endpoints document
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-06-20 09:51:56 +05:30
rishubhjain
5c9f279b69 Merge branch 'master' of https://github.com/gluster/glusterd2 into list_device 2018-05-29 13:36:12 -04:00
rishubhjain
d222a63a42 Merge branch 'master' of https://github.com/gluster/glusterd2 into list_device 2018-05-25 00:21:50 -04:00
Prashanth Pai
0968fe37fc Merge branch 'master' into issue_759 2018-05-22 15:47:51 +05:30
Madhu Rajanna
55ed87fc53 added requestbody for volume start api
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-22 15:18:51 +05:30
Madhu Rajanna
98f27230bf service health check URL for glusterd2
consumers wanted to
to check the status of glusterd2.
they can consume this URL to check
the status of glusterd2.

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-22 12:45:26 +05:30
Prashanth Pai
bb1a153186 Merge branch 'master' into issue_746 2018-05-15 14:26:15 +05:30
Madhu Rajanna
e598a6df6f updated attach to add and detach to remove
in code and in documents

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-11 16:16:48 +05:30
Madhu Rajanna
5c2ab1ad25 updated the doc to have peer attach
and peer list commands

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-11 16:16:48 +05:30
Madhu Rajanna
a15d299e43 updated endpoints in doc
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-11 15:28:32 +05:30
Prashanth Pai
f131affbce Merge branch 'master' into edit-volume-metadata-API 2018-05-10 15:04:59 +05:30
Madhu Rajanna
e4d26c5750 updated endpoint.md doc
Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2018-05-10 11:47:57 +05:30