[jira] [Updated] (HDFS-14814) RBF: The quota should be set the same as the nearest parent in Global Quota.

2019-09-16 Thread Jinglun (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-14814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jinglun updated HDFS-14814:
---
Description: 
I want to add a rule *'The quota should be set the same as the nearest parent'* 
to Global Quota. Supposing we have the mount table below.

M1: /dir-a                            ns0->/dir-a     \{nquota=10,squota=20}
M2: /dir-a/dir-b                 ns1->/dir-b     \{nquota=-1,squota=30}
M3: /dir-a/dir-b/dir-c       ns2->/dir-c     \{nquota=-1,squota=-1}
M4: /dir-d                           ns3->/dir-d     \{nquota=-1,squota=-1}

 

The quota for the remote locations on the namespaces should be:
 ns0->/dir-a     \{nquota=10,squota=20}
 ns1->/dir-b     \{nquota=10,squota=30}
 ns2->/dir-c      \{nquota=10,squota=30}
 ns3->/dir-d     \{nquota=-1,squota=-1}

 

The quota of the remote location is set the same as the corresponding 
MountTable, and if there is no quota of the MountTable then the quota is set to 
the nearest parent MountTable with quota.

 

It's easy to implement it. In RouterQuotaUpdateService each time we compute the 
currentQuotaUsage, we can get the quota info for each MountTable. We can do a
 check and fix all the MountTable which's quota doesn't match the rule above.

  was:
I want to add a rule *'The quota should be set the same as the nearest parent'* 
to Global Quota. Supposing we have the mount table below.

/dir-a                            ns0->/dir-a     \{nquota=10,squota=20}
/dir-a/dir-b                 ns1->/dir-b     \{nquota=-1,squota=30}
/dir-a/dir-b/dir-c       ns2->/dir-c     \{nquota=-1,squota=-1}
/dir-d                           ns3->/dir-d     \{nquota=-1,squota=-1}

 

The quota for the remote locations on the namespaces should be:
 ns0->/dir-a     \{nquota=10,squota=20}
 ns1->/dir-b     \{nquota=10,squota=30}
 ns2->/dir-c      \{nquota=10,squota=30}
 ns3->/dir-d     \{nquota=-1,squota=-1}

 

The quota of the remote location is set the same as the corresponding 
MountTable, and if there is no quota of the MountTable then the quota is set to 
the nearest parent MountTable with quota.

 

It's easy to implement it. In RouterQuotaUpdateService each time we compute the 
currentQuotaUsage, we can get the quota info for each MountTable. We can do a
 check and fix all the MountTable which's quota doesn't match the rule above.


> RBF: The quota should be set the same as the nearest parent in Global Quota.
> 
>
> Key: HDFS-14814
> URL: https://issues.apache.org/jira/browse/HDFS-14814
> Project: Hadoop HDFS
>  Issue Type: Improvement
>Reporter: Jinglun
>Assignee: Jinglun
>Priority: Major
> Attachments: HDFS-14814.001.patch, HDFS-14814.002.patch, 
> HDFS-14814.003.patch
>
>
> I want to add a rule *'The quota should be set the same as the nearest 
> parent'* to Global Quota. Supposing we have the mount table below.
> M1: /dir-a                            ns0->/dir-a     \{nquota=10,squota=20}
> M2: /dir-a/dir-b                 ns1->/dir-b     \{nquota=-1,squota=30}
> M3: /dir-a/dir-b/dir-c       ns2->/dir-c     \{nquota=-1,squota=-1}
> M4: /dir-d                           ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota for the remote locations on the namespaces should be:
>  ns0->/dir-a     \{nquota=10,squota=20}
>  ns1->/dir-b     \{nquota=10,squota=30}
>  ns2->/dir-c      \{nquota=10,squota=30}
>  ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota of the remote location is set the same as the corresponding 
> MountTable, and if there is no quota of the MountTable then the quota is set 
> to the nearest parent MountTable with quota.
>  
> It's easy to implement it. In RouterQuotaUpdateService each time we compute 
> the currentQuotaUsage, we can get the quota info for each MountTable. We can 
> do a
>  check and fix all the MountTable which's quota doesn't match the rule above.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-14814) RBF: The quota should be set the same as the nearest parent in Global Quota.

2019-09-15 Thread Jinglun (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-14814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jinglun updated HDFS-14814:
---
Attachment: HDFS-14814.003.patch

> RBF: The quota should be set the same as the nearest parent in Global Quota.
> 
>
> Key: HDFS-14814
> URL: https://issues.apache.org/jira/browse/HDFS-14814
> Project: Hadoop HDFS
>  Issue Type: Improvement
>Reporter: Jinglun
>Assignee: Jinglun
>Priority: Major
> Attachments: HDFS-14814.001.patch, HDFS-14814.002.patch, 
> HDFS-14814.003.patch
>
>
> I want to add a rule *'The quota should be set the same as the nearest 
> parent'* to Global Quota. Supposing we have the mount table below.
> /dir-a                            ns0->/dir-a     \{nquota=10,squota=20}
> /dir-a/dir-b                 ns1->/dir-b     \{nquota=-1,squota=30}
> /dir-a/dir-b/dir-c       ns2->/dir-c     \{nquota=-1,squota=-1}
> /dir-d                           ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota for the remote locations on the namespaces should be:
>  ns0->/dir-a     \{nquota=10,squota=20}
>  ns1->/dir-b     \{nquota=10,squota=30}
>  ns2->/dir-c      \{nquota=10,squota=30}
>  ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota of the remote location is set the same as the corresponding 
> MountTable, and if there is no quota of the MountTable then the quota is set 
> to the nearest parent MountTable with quota.
>  
> It's easy to implement it. In RouterQuotaUpdateService each time we compute 
> the currentQuotaUsage, we can get the quota info for each MountTable. We can 
> do a
>  check and fix all the MountTable which's quota doesn't match the rule above.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-14814) RBF: The quota should be set the same as the nearest parent in Global Quota.

2019-09-15 Thread Jinglun (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-14814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jinglun updated HDFS-14814:
---
Attachment: HDFS-14814.002.patch

> RBF: The quota should be set the same as the nearest parent in Global Quota.
> 
>
> Key: HDFS-14814
> URL: https://issues.apache.org/jira/browse/HDFS-14814
> Project: Hadoop HDFS
>  Issue Type: Improvement
>Reporter: Jinglun
>Assignee: Jinglun
>Priority: Major
> Attachments: HDFS-14814.001.patch, HDFS-14814.002.patch
>
>
> I want to add a rule *'The quota should be set the same as the nearest 
> parent'* to Global Quota. Supposing we have the mount table below.
> /dir-a                            ns0->/dir-a     \{nquota=10,squota=20}
> /dir-a/dir-b                 ns1->/dir-b     \{nquota=-1,squota=30}
> /dir-a/dir-b/dir-c       ns2->/dir-c     \{nquota=-1,squota=-1}
> /dir-d                           ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota for the remote locations on the namespaces should be:
>  ns0->/dir-a     \{nquota=10,squota=20}
>  ns1->/dir-b     \{nquota=10,squota=30}
>  ns2->/dir-c      \{nquota=10,squota=30}
>  ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota of the remote location is set the same as the corresponding 
> MountTable, and if there is no quota of the MountTable then the quota is set 
> to the nearest parent MountTable with quota.
>  
> It's easy to implement it. In RouterQuotaUpdateService each time we compute 
> the currentQuotaUsage, we can get the quota info for each MountTable. We can 
> do a
>  check and fix all the MountTable which's quota doesn't match the rule above.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-14814) RBF: The quota should be set the same as the nearest parent in Global Quota.

2019-09-15 Thread Jinglun (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-14814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jinglun updated HDFS-14814:
---
Attachment: (was: HDFS-14814.002.patch)

> RBF: The quota should be set the same as the nearest parent in Global Quota.
> 
>
> Key: HDFS-14814
> URL: https://issues.apache.org/jira/browse/HDFS-14814
> Project: Hadoop HDFS
>  Issue Type: Improvement
>Reporter: Jinglun
>Assignee: Jinglun
>Priority: Major
> Attachments: HDFS-14814.001.patch, HDFS-14814.002.patch
>
>
> I want to add a rule *'The quota should be set the same as the nearest 
> parent'* to Global Quota. Supposing we have the mount table below.
> /dir-a                            ns0->/dir-a     \{nquota=10,squota=20}
> /dir-a/dir-b                 ns1->/dir-b     \{nquota=-1,squota=30}
> /dir-a/dir-b/dir-c       ns2->/dir-c     \{nquota=-1,squota=-1}
> /dir-d                           ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota for the remote locations on the namespaces should be:
>  ns0->/dir-a     \{nquota=10,squota=20}
>  ns1->/dir-b     \{nquota=10,squota=30}
>  ns2->/dir-c      \{nquota=10,squota=30}
>  ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota of the remote location is set the same as the corresponding 
> MountTable, and if there is no quota of the MountTable then the quota is set 
> to the nearest parent MountTable with quota.
>  
> It's easy to implement it. In RouterQuotaUpdateService each time we compute 
> the currentQuotaUsage, we can get the quota info for each MountTable. We can 
> do a
>  check and fix all the MountTable which's quota doesn't match the rule above.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-14814) RBF: The quota should be set the same as the nearest parent in Global Quota.

2019-09-15 Thread Jinglun (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-14814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jinglun updated HDFS-14814:
---
Attachment: HDFS-14814.002.patch

> RBF: The quota should be set the same as the nearest parent in Global Quota.
> 
>
> Key: HDFS-14814
> URL: https://issues.apache.org/jira/browse/HDFS-14814
> Project: Hadoop HDFS
>  Issue Type: Improvement
>Reporter: Jinglun
>Assignee: Jinglun
>Priority: Major
> Attachments: HDFS-14814.001.patch, HDFS-14814.002.patch
>
>
> I want to add a rule *'The quota should be set the same as the nearest 
> parent'* to Global Quota. Supposing we have the mount table below.
> /dir-a                            ns0->/dir-a     \{nquota=10,squota=20}
> /dir-a/dir-b                 ns1->/dir-b     \{nquota=-1,squota=30}
> /dir-a/dir-b/dir-c       ns2->/dir-c     \{nquota=-1,squota=-1}
> /dir-d                           ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota for the remote locations on the namespaces should be:
>  ns0->/dir-a     \{nquota=10,squota=20}
>  ns1->/dir-b     \{nquota=10,squota=30}
>  ns2->/dir-c      \{nquota=10,squota=30}
>  ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota of the remote location is set the same as the corresponding 
> MountTable, and if there is no quota of the MountTable then the quota is set 
> to the nearest parent MountTable with quota.
>  
> It's easy to implement it. In RouterQuotaUpdateService each time we compute 
> the currentQuotaUsage, we can get the quota info for each MountTable. We can 
> do a
>  check and fix all the MountTable which's quota doesn't match the rule above.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-14814) RBF: The quota should be set the same as the nearest parent in Global Quota.

2019-09-13 Thread Jinglun (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-14814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jinglun updated HDFS-14814:
---
Attachment: HDFS-14814.001.patch
Status: Patch Available  (was: Open)

> RBF: The quota should be set the same as the nearest parent in Global Quota.
> 
>
> Key: HDFS-14814
> URL: https://issues.apache.org/jira/browse/HDFS-14814
> Project: Hadoop HDFS
>  Issue Type: Improvement
>Reporter: Jinglun
>Assignee: Jinglun
>Priority: Major
> Attachments: HDFS-14814.001.patch
>
>
> I want to add a rule *'The quota should be set the same as the nearest 
> parent'* to Global Quota. Supposing we have the mount table below.
> /dir-a                            ns0->/dir-a     \{nquota=10,squota=20}
> /dir-a/dir-b                 ns1->/dir-b     \{nquota=-1,squota=30}
> /dir-a/dir-b/dir-c       ns2->/dir-c     \{nquota=-1,squota=-1}
> /dir-d                           ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota for the remote locations on the namespaces should be:
>  ns0->/dir-a     \{nquota=10,squota=20}
>  ns1->/dir-b     \{nquota=10,squota=30}
>  ns2->/dir-c      \{nquota=10,squota=30}
>  ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota of the remote location is set the same as the corresponding 
> MountTable, and if there is no quota of the MountTable then the quota is set 
> to the nearest parent MountTable with quota.
>  
> It's easy to implement it. In RouterQuotaUpdateService each time we compute 
> the currentQuotaUsage, we can get the quota info for each MountTable. We can 
> do a
>  check and fix all the MountTable which's quota doesn't match the rule above.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-14814) RBF: The quota should be set the same as the nearest parent in Global Quota.

2019-09-03 Thread Jinglun (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-14814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jinglun updated HDFS-14814:
---
Description: 
I want to add a rule *'The quota should be set the same as the nearest parent'* 
to Global Quota. Supposing we have the mount table below.

/dir-a                            ns0->/dir-a     \{nquota=10,squota=20}
/dir-a/dir-b                 ns1->/dir-b     \{nquota=-1,squota=30}
/dir-a/dir-b/dir-c       ns2->/dir-c     \{nquota=-1,squota=-1}
/dir-d                           ns3->/dir-d     \{nquota=-1,squota=-1}

 

The quota for the remote locations on the namespaces should be:
 ns0->/dir-a     \{nquota=10,squota=20}
 ns1->/dir-b     \{nquota=10,squota=30}
 ns2->/dir-c      \{nquota=10,squota=30}
 ns3->/dir-d     \{nquota=-1,squota=-1}

 

The quota of the remote location is set the same as the corresponding 
MountTable, and if there is no quota of the MountTable then the quota is set to 
the nearest parent MountTable with quota.

 

It's easy to implement it. In RouterQuotaUpdateService each time we compute the 
currentQuotaUsage, we can get the quota info for each MountTable. We can do a
 check and fix all the MountTable which's quota doesn't match the rule above.

  was:
I want to add a rule *'The quota should be set the same as the nearest parent'* 
to Global Quota. Supposing we have the mount table below.

 
||src||destinations||quota||
|/dir-a|ns0->/dir-a|  \{nquota=10,squota=20}|
|/dir-a/dir-b|ns1->/dir-b|{nquota=-1,squota=30}|
|/dir-a/dir-b/dir-c|ns2->/dir-c|{nquota=-1,squota=-1}\|
 \|/dir-d\|ns3->/dir-d\|\{nquota=-1,squota=-1}|

 

The quota for the remote locations on the namespaces should be:
 ns0->/dir-a \{nquota=10,squota=20}
 ns1->/dir-b \{nquota=10,squota=30}
 ns2->/dir-c \{nquota=10,squota=30}
 ns3->/dir-d \{nquota=-1,squota=-1}

 

The quota of the remote location is set the same as the corresponding 
MountTable, and if there is no quota of the MountTable then the quota is set to 
the nearest parent MountTable with quota.

 

It's easy to implement it. In RouterQuotaUpdateService each time we compute the 
currentQuotaUsage, we can get the quota info for each MountTable. We can do a
 check and fix all the MountTable which's quota doesn't match the rule above.


> RBF: The quota should be set the same as the nearest parent in Global Quota.
> 
>
> Key: HDFS-14814
> URL: https://issues.apache.org/jira/browse/HDFS-14814
> Project: Hadoop HDFS
>  Issue Type: Improvement
>Reporter: Jinglun
>Assignee: Jinglun
>Priority: Major
>
> I want to add a rule *'The quota should be set the same as the nearest 
> parent'* to Global Quota. Supposing we have the mount table below.
> /dir-a                            ns0->/dir-a     \{nquota=10,squota=20}
> /dir-a/dir-b                 ns1->/dir-b     \{nquota=-1,squota=30}
> /dir-a/dir-b/dir-c       ns2->/dir-c     \{nquota=-1,squota=-1}
> /dir-d                           ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota for the remote locations on the namespaces should be:
>  ns0->/dir-a     \{nquota=10,squota=20}
>  ns1->/dir-b     \{nquota=10,squota=30}
>  ns2->/dir-c      \{nquota=10,squota=30}
>  ns3->/dir-d     \{nquota=-1,squota=-1}
>  
> The quota of the remote location is set the same as the corresponding 
> MountTable, and if there is no quota of the MountTable then the quota is set 
> to the nearest parent MountTable with quota.
>  
> It's easy to implement it. In RouterQuotaUpdateService each time we compute 
> the currentQuotaUsage, we can get the quota info for each MountTable. We can 
> do a
>  check and fix all the MountTable which's quota doesn't match the rule above.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-14814) RBF: The quota should be set the same as the nearest parent in Global Quota.

2019-09-03 Thread Jinglun (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-14814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jinglun updated HDFS-14814:
---
Description: 
I want to add a rule *'The quota should be set the same as the nearest parent'* 
to Global Quota. Supposing we have the mount table below.

 
||src||destinations||quota||
|/dir-a|ns0->/dir-a|  \{nquota=10,squota=20}|
|/dir-a/dir-b|ns1->/dir-b|{nquota=-1,squota=30}|
|/dir-a/dir-b/dir-c|ns2->/dir-c|{nquota=-1,squota=-1}\|
 \|/dir-d\|ns3->/dir-d\|\{nquota=-1,squota=-1}|

 

The quota for the remote locations on the namespaces should be:
 ns0->/dir-a \{nquota=10,squota=20}
 ns1->/dir-b \{nquota=10,squota=30}
 ns2->/dir-c \{nquota=10,squota=30}
 ns3->/dir-d \{nquota=-1,squota=-1}

 

The quota of the remote location is set the same as the corresponding 
MountTable, and if there is no quota of the MountTable then the quota is set to 
the nearest parent MountTable with quota.

 

It's easy to implement it. In RouterQuotaUpdateService each time we compute the 
currentQuotaUsage, we can get the quota info for each MountTable. We can do a
 check and fix all the MountTable which's quota doesn't match the rule above.

  was:
I want to add a rule *'The quota should be set the same as the nearest parent'* 
to Global Quota. Supposing we have the mount table below.

 
||src||destinations||quota||
|/dir-a|ns0->/dir-a|  \{nquota=10,squota=20}|
|/dir-a/dir-b|ns1->/dir-b|{nquota=-1,squota=30}|
|/dir-a/dir-b/dir-c|ns2->/dir-c|{nquota=-1,squota=-1}|
|/dir-d|ns3->/dir-d|{nquota=-1,squota=-1}|

 

The quota for the remote locations on the namespaces should be:
 ns0->/dir-a \{nquota=10,squota=20}
 ns1->/dir-b \{nquota=10,squota=30}
 ns2->/dir-c \{nquota=10,squota=30}
 ns3->/dir-d \{nquota=-1,squota=-1}

The quota of the remote location is set the same as the corresponding 
MountTable, and if there is no quota of the MountTable then the quota is set to 
the nearest parent MountTable with quota.

It's easy to implement it. In RouterQuotaUpdateService each time we compute the 
currentQuotaUsage, we can get the quota info for each MountTable. We can do a
 check and fix all the MountTable which's quota doesn't match the rule above.


> RBF: The quota should be set the same as the nearest parent in Global Quota.
> 
>
> Key: HDFS-14814
> URL: https://issues.apache.org/jira/browse/HDFS-14814
> Project: Hadoop HDFS
>  Issue Type: Improvement
>Reporter: Jinglun
>Assignee: Jinglun
>Priority: Major
>
> I want to add a rule *'The quota should be set the same as the nearest 
> parent'* to Global Quota. Supposing we have the mount table below.
>  
> ||src||destinations||quota||
> |/dir-a|ns0->/dir-a|  \{nquota=10,squota=20}|
> |/dir-a/dir-b|ns1->/dir-b|{nquota=-1,squota=30}|
> |/dir-a/dir-b/dir-c|ns2->/dir-c|{nquota=-1,squota=-1}\|
>  \|/dir-d\|ns3->/dir-d\|\{nquota=-1,squota=-1}|
>  
> The quota for the remote locations on the namespaces should be:
>  ns0->/dir-a \{nquota=10,squota=20}
>  ns1->/dir-b \{nquota=10,squota=30}
>  ns2->/dir-c \{nquota=10,squota=30}
>  ns3->/dir-d \{nquota=-1,squota=-1}
>  
> The quota of the remote location is set the same as the corresponding 
> MountTable, and if there is no quota of the MountTable then the quota is set 
> to the nearest parent MountTable with quota.
>  
> It's easy to implement it. In RouterQuotaUpdateService each time we compute 
> the currentQuotaUsage, we can get the quota info for each MountTable. We can 
> do a
>  check and fix all the MountTable which's quota doesn't match the rule above.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-14814) RBF: The quota should be set the same as the nearest parent in Global Quota.

2019-09-03 Thread Jinglun (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-14814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jinglun updated HDFS-14814:
---
Description: 
I want to add a rule *'The quota should be set the same as the nearest parent'* 
to Global Quota. Supposing we have the mount table below.

 
||src||destinations||quota||
|/dir-a|ns0->/dir-a|  \{nquota=10,squota=20}|
|/dir-a/dir-b|ns1->/dir-b|{nquota=-1,squota=30}|
|/dir-a/dir-b/dir-c|ns2->/dir-c|{nquota=-1,squota=-1}\|
 \|/dir-d\|ns3->/dir-d\|\{nquota=-1,squota=-1}|

 

The quota for the remote locations on the namespaces should be:
 ns0->/dir-a \{nquota=10,squota=20}
 ns1->/dir-b \{nquota=10,squota=30}
 ns2->/dir-c \{nquota=10,squota=30}
 ns3->/dir-d \{nquota=-1,squota=-1}

The quota of the remote location is set the same as the corresponding 
MountTable, and if there is no quota of the MountTable then the quota is set to 
the nearest parent MountTable with quota.

It's easy to implement it. In RouterQuotaUpdateService each time we compute the 
currentQuotaUsage, we can get the quota info for each MountTable. We can do a
 check and fix all the MountTable which's quota doesn't match the rule above.

  was:
I want to add a rule 'The quota should be set the same as the nearest parent' 
to Global Quota. Supposing we have the mount table below.

 
||src||destinations||quota||
|/dir-a|ns0->/dir-a|  \{nquota=10,squota=20}|
|/dir-a/dir-b|ns1->/dir-b|{nquota=-1,squota=30}|
|/dir-a/dir-b/dir-c|ns2->/dir-c|{nquota=-1,squota=-1}|
|/dir-d|ns3->/dir-d|{nquota=-1,squota=-1}|

 

The quota for the remote locations on the namespaces should be:
ns0->/dir-a \{nquota=10,squota=20}
ns1->/dir-b \{nquota=10,squota=30}
ns2->/dir-c \{nquota=10,squota=30}
ns3->/dir-d \{nquota=-1,squota=-1}

The quota of the remote location is set the same as the corresponding 
MountTable, and if there is no quota of the MountTable then the quota is set to 
the nearest parent MountTable with quota.

It's easy to implement it. In RouterQuotaUpdateService each time we compute the 
currentQuotaUsage, we can get the quota info for each MountTable. We can do a
check and fix all the MountTable which's quota doesn't match the rule above.


> RBF: The quota should be set the same as the nearest parent in Global Quota.
> 
>
> Key: HDFS-14814
> URL: https://issues.apache.org/jira/browse/HDFS-14814
> Project: Hadoop HDFS
>  Issue Type: Improvement
>Reporter: Jinglun
>Assignee: Jinglun
>Priority: Major
>
> I want to add a rule *'The quota should be set the same as the nearest 
> parent'* to Global Quota. Supposing we have the mount table below.
>  
> ||src||destinations||quota||
> |/dir-a|ns0->/dir-a|  \{nquota=10,squota=20}|
> |/dir-a/dir-b|ns1->/dir-b|{nquota=-1,squota=30}|
> |/dir-a/dir-b/dir-c|ns2->/dir-c|{nquota=-1,squota=-1}\|
>  \|/dir-d\|ns3->/dir-d\|\{nquota=-1,squota=-1}|
>  
> The quota for the remote locations on the namespaces should be:
>  ns0->/dir-a \{nquota=10,squota=20}
>  ns1->/dir-b \{nquota=10,squota=30}
>  ns2->/dir-c \{nquota=10,squota=30}
>  ns3->/dir-d \{nquota=-1,squota=-1}
> The quota of the remote location is set the same as the corresponding 
> MountTable, and if there is no quota of the MountTable then the quota is set 
> to the nearest parent MountTable with quota.
> It's easy to implement it. In RouterQuotaUpdateService each time we compute 
> the currentQuotaUsage, we can get the quota info for each MountTable. We can 
> do a
>  check and fix all the MountTable which's quota doesn't match the rule above.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-14814) RBF: The quota should be set the same as the nearest parent in Global Quota.

2019-09-03 Thread Jinglun (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-14814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jinglun updated HDFS-14814:
---
Description: 
I want to add a rule *'The quota should be set the same as the nearest parent'* 
to Global Quota. Supposing we have the mount table below.

 
||src||destinations||quota||
|/dir-a|ns0->/dir-a|  \{nquota=10,squota=20}|
|/dir-a/dir-b|ns1->/dir-b|{nquota=-1,squota=30}|
|/dir-a/dir-b/dir-c|ns2->/dir-c|{nquota=-1,squota=-1}|
|/dir-d|ns3->/dir-d|{nquota=-1,squota=-1}|

 

The quota for the remote locations on the namespaces should be:
 ns0->/dir-a \{nquota=10,squota=20}
 ns1->/dir-b \{nquota=10,squota=30}
 ns2->/dir-c \{nquota=10,squota=30}
 ns3->/dir-d \{nquota=-1,squota=-1}

The quota of the remote location is set the same as the corresponding 
MountTable, and if there is no quota of the MountTable then the quota is set to 
the nearest parent MountTable with quota.

It's easy to implement it. In RouterQuotaUpdateService each time we compute the 
currentQuotaUsage, we can get the quota info for each MountTable. We can do a
 check and fix all the MountTable which's quota doesn't match the rule above.

  was:
I want to add a rule *'The quota should be set the same as the nearest parent'* 
to Global Quota. Supposing we have the mount table below.

 
||src||destinations||quota||
|/dir-a|ns0->/dir-a|  \{nquota=10,squota=20}|
|/dir-a/dir-b|ns1->/dir-b|{nquota=-1,squota=30}|
|/dir-a/dir-b/dir-c|ns2->/dir-c|{nquota=-1,squota=-1}\|
 \|/dir-d\|ns3->/dir-d\|\{nquota=-1,squota=-1}|

 

The quota for the remote locations on the namespaces should be:
 ns0->/dir-a \{nquota=10,squota=20}
 ns1->/dir-b \{nquota=10,squota=30}
 ns2->/dir-c \{nquota=10,squota=30}
 ns3->/dir-d \{nquota=-1,squota=-1}

The quota of the remote location is set the same as the corresponding 
MountTable, and if there is no quota of the MountTable then the quota is set to 
the nearest parent MountTable with quota.

It's easy to implement it. In RouterQuotaUpdateService each time we compute the 
currentQuotaUsage, we can get the quota info for each MountTable. We can do a
 check and fix all the MountTable which's quota doesn't match the rule above.


> RBF: The quota should be set the same as the nearest parent in Global Quota.
> 
>
> Key: HDFS-14814
> URL: https://issues.apache.org/jira/browse/HDFS-14814
> Project: Hadoop HDFS
>  Issue Type: Improvement
>Reporter: Jinglun
>Assignee: Jinglun
>Priority: Major
>
> I want to add a rule *'The quota should be set the same as the nearest 
> parent'* to Global Quota. Supposing we have the mount table below.
>  
> ||src||destinations||quota||
> |/dir-a|ns0->/dir-a|  \{nquota=10,squota=20}|
> |/dir-a/dir-b|ns1->/dir-b|{nquota=-1,squota=30}|
> |/dir-a/dir-b/dir-c|ns2->/dir-c|{nquota=-1,squota=-1}|
> |/dir-d|ns3->/dir-d|{nquota=-1,squota=-1}|
>  
> The quota for the remote locations on the namespaces should be:
>  ns0->/dir-a \{nquota=10,squota=20}
>  ns1->/dir-b \{nquota=10,squota=30}
>  ns2->/dir-c \{nquota=10,squota=30}
>  ns3->/dir-d \{nquota=-1,squota=-1}
> The quota of the remote location is set the same as the corresponding 
> MountTable, and if there is no quota of the MountTable then the quota is set 
> to the nearest parent MountTable with quota.
> It's easy to implement it. In RouterQuotaUpdateService each time we compute 
> the currentQuotaUsage, we can get the quota info for each MountTable. We can 
> do a
>  check and fix all the MountTable which's quota doesn't match the rule above.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org